summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_dump.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
committerphk <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
commit536319e74068e70486e4ae4127774b8cdfbb3aa9 (patch)
treebf4b18a139228ae721671a5bdd77f029794eb842 /sys/geom/geom_dump.c
parent6128ce4ca2087bba0e1d6da690b5e0b3b15b459e (diff)
downloadFreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.zip
FreeBSD-src-536319e74068e70486e4ae4127774b8cdfbb3aa9.tar.gz
Use %jd instead of %lld now that we have it.
Diffstat (limited to 'sys/geom/geom_dump.c')
-rw-r--r--sys/geom/geom_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c
index b944991..b8c9c8b 100644
--- a/sys/geom/geom_dump.c
+++ b/sys/geom/geom_dump.c
@@ -37,6 +37,7 @@
#include <sys/param.h>
+#include <sys/stdint.h>
#include <sys/sbuf.h>
#ifndef _KERNEL
#include <stdio.h>
@@ -143,6 +144,8 @@ g_conf_provider(struct sbuf *sb, struct g_provider *pp)
sbuf_printf(sb, "\t <mode>r%dw%de%d</mode>\n",
pp->acr, pp->acw, pp->ace);
sbuf_printf(sb, "\t <name>%s</name>\n", pp->name);
+ sbuf_printf(sb, "\t <mediasize>%jd</mediasize>\n",
+ (intmax_t)pp->mediasize);
if (pp->geom->dumpconf) {
sbuf_printf(sb, "\t <config>\n");
pp->geom->dumpconf(sb, "\t ", pp->geom, NULL, pp);
OpenPOWER on IntegriCloud