diff options
author | bryan newbold <bnewbold@leaflabs.com> | 2013-12-19 11:58:23 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@leaflabs.com> | 2013-12-19 11:58:23 -0500 |
commit | 250d52b9e2fbae7c6f63fe7a27775273e6d76b2f (patch) | |
tree | a77d671e5e2c6e1f698f137d29d6b61f17544312 | |
parent | d66bd2b1bd922d32f1c5fd0cfe4477ed00295307 (diff) | |
download | uioctl-250d52b9e2fbae7c6f63fe7a27775273e6d76b2f.tar.gz uioctl-250d52b9e2fbae7c6f63fe7a27775273e6d76b2f.zip |
better interrupt printing
-rw-r--r-- | uioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |