From 246b02f9e3a7703384f5acf7af7724410bf2ae9b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 May 2009 21:18:29 -0700 Subject: mincore: byte offsets should be shown in hex --- mincore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3-24-ge0c7