aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@leaflabs.com>2013-12-21 17:19:37 -0500
committerbryan newbold <bnewbold@leaflabs.com>2013-12-21 17:19:37 -0500
commitae243755645b109c58e4867a385a97adad4afc20 (patch)
tree54ae17899413cd1d825d3c54f7e6e4fdd0ceaa1c
parentccee2d12f0df8df537fd272a790ae6c2a6c52d73 (diff)
downloaduioctl-ae243755645b109c58e4867a385a97adad4afc20.zip
uioctl-ae243755645b109c58e4867a385a97adad4afc20.tar.gz
fix millisecond output (no 1/10th milli available)
-rw-r--r--uioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uioctl.c b/uioctl.c
index 9640399..dea40f9 100644
--- a/uioctl.c
+++ b/uioctl.c
@@ -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);