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_bsd.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_bsd.c')
-rw-r--r-- | sys/geom/geom_bsd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 22151db..61eaaf3 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -52,6 +52,7 @@ #include <sys/lock.h> #include <sys/mutex.h> #endif +#include <sys/stdint.h> #include <sys/errno.h> #include <sys/disklabel.h> #include <geom/geom.h> @@ -288,8 +289,8 @@ g_bsd_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consum gsp = gp->softc; ms = gsp->softc; if (pp == NULL && cp == NULL) { - sbuf_printf(sb, "%s<labeloffset>%lld</labeloffset>\n", - indent, ms->labeloffset); + sbuf_printf(sb, "%s<labeloffset>%jd</labeloffset>\n", + indent, (intmax_t)ms->labeloffset); } g_slice_dumpconf(sb, indent, gp, cp, pp); } |