summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-28 10:09:24 +0000
committerphk <phk@FreeBSD.org>2002-03-28 10:09:24 +0000
commite11a1be17eba2b9cbc07d42a9ebe9a746aa77ad2 (patch)
treefb0250a8b041e644c6efdcd2b455c023c53aac58 /sys/geom/geom_slice.c
parent2475368c6178ad8081b1dfc31db1adc2e254ea3e (diff)
downloadFreeBSD-src-e11a1be17eba2b9cbc07d42a9ebe9a746aa77ad2.zip
FreeBSD-src-e11a1be17eba2b9cbc07d42a9ebe9a746aa77ad2.tar.gz
In the absense of any smarter way to do this, cast various printf
arguments to silence printf format warnings.
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index da4d08a..2df1ed0 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -176,13 +176,13 @@ g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_cons
if (pp != NULL) {
sbuf_printf(sb, "%s<index>%u</index>\n", indent, pp->index);
sbuf_printf(sb, "%s<length>%llu</length>\n",
- indent, gsp->slices[pp->index].length);
- sbuf_printf(sb, "%s<seclength>%llu</seclength>\n",
- indent, gsp->slices[pp->index].length / 512);
- sbuf_printf(sb, "%s<offset>%llu</offset>\n",
- indent, gsp->slices[pp->index].offset);
- sbuf_printf(sb, "%s<secoffset>%llu</secoffset>\n",
- indent, gsp->slices[pp->index].offset / 512);
+ 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);
}
}
OpenPOWER on IntegriCloud