diff options
author | stefanf <stefanf@FreeBSD.org> | 2004-10-03 16:34:01 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2004-10-03 16:34:01 +0000 |
commit | 2594b3ec4c5941fb573c1c1c82af16035d0e4f1c (patch) | |
tree | a09838b73e6bf579a6cea61987df73455c309072 /sys/boot/common/bcache.c | |
parent | 2168e6b1e4ccb0b39671326e3aecff369da799e4 (diff) | |
download | FreeBSD-src-2594b3ec4c5941fb573c1c1c82af16035d0e4f1c.zip FreeBSD-src-2594b3ec4c5941fb573c1c1c82af16035d0e4f1c.tar.gz |
Use the correct printf specifier.
PR: 47187
Diffstat (limited to 'sys/boot/common/bcache.c')
-rw-r--r-- | sys/boot/common/bcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/stdint.h> + #include <stand.h> #include <string.h> #include <bitstring.h> @@ -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"); } |