summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-13 11:41:25 +0000
committerphk <phk@FreeBSD.org>2002-09-13 11:41:25 +0000
commit238e3d325507fc228dd938ae173eb4d9d1a8f9c7 (patch)
treecffe7a7f5a3206872b13ed25e1ba810c6364a8d4 /sys/geom/geom_disk.c
parent39330dc632633393578de07de7d1e1faf9768680 (diff)
downloadFreeBSD-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_disk.c')
-rw-r--r--sys/geom/geom_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index acbee24..d4091ef 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -46,6 +46,7 @@
#include <sys/disk.h>
#include <sys/malloc.h>
#include <sys/sysctl.h>
+#include <sys/stdint.h>
#include <machine/md_var.h>
#include <sys/ctype.h>
@@ -106,7 +107,7 @@ g_disk_kerneldump(struct bio *bp, struct disk *dp)
struct dumperinfo di;
gkd = (struct g_kerneldump*)bp->bio_data;
- printf("Kerneldump off=%lld len=%lld\n", gkd->offset, gkd->length);
+ printf("Kerneldump off=%jd len=%jd\n", (intmax_t)gkd->offset, (intmax_t)gkd->length);
di.dumper = (dumper_t *)dp->d_devsw->d_dump;
di.priv = dp->d_dev;
di.blocksize = dp->d_label.d_secsize;
OpenPOWER on IntegriCloud