diff options
author | phk <phk@FreeBSD.org> | 2002-09-13 11:41:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-13 11:41:25 +0000 |
commit | 238e3d325507fc228dd938ae173eb4d9d1a8f9c7 (patch) | |
tree | cffe7a7f5a3206872b13ed25e1ba810c6364a8d4 /sys/geom/geom_pc98.c | |
parent | 39330dc632633393578de07de7d1e1faf9768680 (diff) | |
download | FreeBSD-src-238e3d325507fc228dd938ae173eb4d9d1a8f9c7.zip FreeBSD-src-238e3d325507fc228dd938ae173eb4d9d1a8f9c7.tar.gz |
"Fix" printf format issues by using %j
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_pc98.c')
-rw-r--r-- | sys/geom/geom_pc98.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom_pc98.c b/sys/geom/geom_pc98.c index 1592404..949ce55 100644 --- a/sys/geom/geom_pc98.c +++ b/sys/geom/geom_pc98.c @@ -52,6 +52,7 @@ #include <sys/lock.h> #include <sys/mutex.h> #endif +#include <sys/stdint.h> #include <sys/errno.h> #include <geom/geom.h> #include <geom/geom_slice.h> @@ -158,8 +159,8 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags) g_hexdump(buf+512 + i * 32, 32); start = v * fwsect * fwhead * sectorsize; length = (u - v) * fwsect * fwhead * sectorsize; - printf("c%d - c%d (%llx - %llx) = %s\n", - v, u, start, length, buf + 512 + 16 + i * 32); + printf("c%d - c%d (%jx - %jx) = %s\n", + v, u, (uintmax_t)start, (uintmax_t)length, buf + 512 + 16 + i * 32); npart++; pp2 = g_slice_addslice(gp, i, start, length, |