aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@leaflabs.com>2013-12-19 11:58:23 -0500
committerbryan newbold <bnewbold@leaflabs.com>2013-12-19 11:58:23 -0500
commit250d52b9e2fbae7c6f63fe7a27775273e6d76b2f (patch)
treea77d671e5e2c6e1f698f137d29d6b61f17544312
parentd66bd2b1bd922d32f1c5fd0cfe4477ed00295307 (diff)
downloaduioctl-250d52b9e2fbae7c6f63fe7a27775273e6d76b2f.zip
uioctl-250d52b9e2fbae7c6f63fe7a27775273e6d76b2f.tar.gz
better interrupt printing
-rw-r--r--uioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uioctl.c b/uioctl.c
index 11bd993..f9be716 100644
--- a/uioctl.c
+++ b/uioctl.c
@@ -97,7 +97,7 @@ static void monitor(char *fpath, int forever) {
fprintf(stderr, "Problem reading from device file\n");
exit(EXIT_FAILURE);
}
- printf("[%ld.%03d] interrupt: %d\n", tp.time, tp.millitm,
+ printf("[%ld.%04d] interrupt: %d\n", tp.time, tp.millitm,
(buf[3] * 16777216 + buf[2] * 65536 + buf[1] * 256 + buf[0]));
} while (forever);
close(fd);