about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-09 21:18:29 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-09 21:18:29 -0700
commit246b02f9e3a7703384f5acf7af7724410bf2ae9b (patch)
tree8ace3e692db0851184e4a0baf6ff4b3abf66b3a1
parent8b4ebef131656614386878692a07f8c51e533a8a (diff)
downloadpcu-246b02f9e3a7703384f5acf7af7724410bf2ae9b.tar.gz
mincore: byte offsets should be shown in hex
-rw-r--r--mincore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mincore.c b/mincore.c
index 81a1262..ff0edc3 100644
--- a/mincore.c
+++ b/mincore.c
@@ -10,7 +10,7 @@ static void mincore_stats(const char *path, off_t offset, off_t len)
         int fd;
         size_t i;
         static const char *fmt = sizeof(void *) == 8 ?
-                                 "%s: %016lu %x\n": "%s: %08lu %x\n";
+                                 "%s: %016lx %x\n": "%s: %08lx %x\n";
 
         if ((fd = open(path, O_RDONLY|O_NOATIME)) < 0) {
                 fprintf(stderr, "%s: open(): %s\n", path, strerror(errno));