diff options
author | phk <phk@FreeBSD.org> | 2002-10-20 18:48:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-20 18:48:12 +0000 |
commit | 536319e74068e70486e4ae4127774b8cdfbb3aa9 (patch) | |
tree | bf4b18a139228ae721671a5bdd77f029794eb842 /sys/geom/geom_slice.c | |
parent | 6128ce4ca2087bba0e1d6da690b5e0b3b15b459e (diff) | |
download | FreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.zip FreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.tar.gz |
Use %jd instead of %lld now that we have it.
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index aacabf1..2cfc998 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -37,6 +37,7 @@ #include <sys/param.h> +#include <sys/stdint.h> #ifndef _KERNEL #include <stdio.h> #include <unistd.h> @@ -210,19 +211,19 @@ g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_cons gsp = gp->softc; if (gp != NULL && (pp == NULL && cp == NULL)) { - sbuf_printf(sb, "%s<frontstuff>%llu</frontstuff>\n", - indent, (unsigned long long)gsp->frontstuff); + sbuf_printf(sb, "%s<frontstuff>%ju</frontstuff>\n", + indent, (intmax_t)gsp->frontstuff); } if (pp != NULL) { sbuf_printf(sb, "%s<index>%u</index>\n", indent, pp->index); - sbuf_printf(sb, "%s<length>%llu</length>\n", - indent, (unsigned long long)gsp->slices[pp->index].length); - sbuf_printf(sb, "%s<seclength>%llu</seclength>\n", indent, - (unsigned long long)gsp->slices[pp->index].length / 512); - sbuf_printf(sb, "%s<offset>%llu</offset>\n", indent, - (unsigned long long)gsp->slices[pp->index].offset); - sbuf_printf(sb, "%s<secoffset>%llu</secoffset>\n", indent, - (unsigned long long)gsp->slices[pp->index].offset / 512); + sbuf_printf(sb, "%s<length>%ju</length>\n", + indent, (uintmax_t)gsp->slices[pp->index].length); + sbuf_printf(sb, "%s<seclength>%ju</seclength>\n", indent, + (uintmax_t)gsp->slices[pp->index].length / 512); + sbuf_printf(sb, "%s<offset>%ju</offset>\n", indent, + (uintmax_t)gsp->slices[pp->index].offset); + sbuf_printf(sb, "%s<secoffset>%ju</secoffset>\n", indent, + (uintmax_t)gsp->slices[pp->index].offset / 512); } } |