diff options
author | bryan newbold <bnewbold@leaflabs.com> | 2013-12-21 17:19:37 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@leaflabs.com> | 2013-12-21 17:19:37 -0500 |
commit | ae243755645b109c58e4867a385a97adad4afc20 (patch) | |
tree | 54ae17899413cd1d825d3c54f7e6e4fdd0ceaa1c /uioctl.c | |
parent | ccee2d12f0df8df537fd272a790ae6c2a6c52d73 (diff) | |
download | uioctl-ae243755645b109c58e4867a385a97adad4afc20.tar.gz uioctl-ae243755645b109c58e4867a385a97adad4afc20.zip |
fix millisecond output (no 1/10th milli available)
Diffstat (limited to 'uioctl.c')
-rw-r--r-- | uioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ static void monitor(char *fpath, int forever) { fprintf(stderr, "Problem reading from device file\n"); exit(EXIT_FAILURE); } - printf("[%ld.%04d] interrupt: %d\n", tp.time, tp.millitm, + printf("[%ld.%03d] interrupt: %d\n", tp.time, tp.millitm, (buf[3] * 16777216 + buf[2] * 65536 + buf[1] * 256 + buf[0])); } while (forever); close(fd); |