From 2594b3ec4c5941fb573c1c1c82af16035d0e4f1c Mon Sep 17 00:00:00 2001 From: stefanf Date: Sun, 3 Oct 2004 16:34:01 +0000 Subject: Use the correct printf specifier. PR: 47187 --- sys/boot/common/bcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/boot/common/bcache.c') diff --git a/sys/boot/common/bcache.c b/sys/boot/common/bcache.c index d61fbf0..c88adca 100644 --- a/sys/boot/common/bcache.c +++ b/sys/boot/common/bcache.c @@ -31,6 +31,8 @@ __FBSDID("$FreeBSD$"); * Simple LRU block cache */ +#include + #include #include #include @@ -337,7 +339,7 @@ command_bcache(int argc, char *argv[]) u_int i; for (i = 0; i < bcache_nblks; i++) { - printf("%08x %04x %04x|", bcache_ctl[i].bc_blkno, (unsigned int)bcache_ctl[i].bc_stamp & 0xffff, bcache_ctl[i].bc_count & 0xffff); + printf("%08jx %04x %04x|", (uintmax_t)bcache_ctl[i].bc_blkno, (unsigned int)bcache_ctl[i].bc_stamp & 0xffff, bcache_ctl[i].bc_count & 0xffff); if (((i + 1) % 4) == 0) printf("\n"); } -- cgit v1.1