aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_dump.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-20 18:48:12 +0000
commit14ac6812b92289b9d22d3101e416dbf7c601de69 (patch)
treebf4b18a139228ae721671a5bdd77f029794eb842 /sys/geom/geom_dump.c
parent9e2ebaa081e06115d6b5cdef5015c26ceee3cbed (diff)
downloadsrc-14ac6812b92289b9d22d3101e416dbf7c601de69.tar.gz
src-14ac6812b92289b9d22d3101e416dbf7c601de69.zip
Use %jd instead of %lld now that we have it.
Notes
Notes: svn path=/head/; revision=105540
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 b94499135507..b8c9c8bc4dd2 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);