summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-06-08 15:54:07 +0000
committerjhb <jhb@FreeBSD.org>2009-06-08 15:54:07 +0000
commitd80013685e7d3bb010da6773a5bc970e29bfc9b0 (patch)
treebccd8f0b97b047d2c99c02d133eeaa1cc74cc24e /sbin/geom
parent2dc666fafe020f8bcc24ac28bda58bac3f7a0b24 (diff)
downloadFreeBSD-src-d80013685e7d3bb010da6773a5bc970e29bfc9b0.zip
FreeBSD-src-d80013685e7d3bb010da6773a5bc970e29bfc9b0.tar.gz
Change the printf format string to match the variable type to quiet
warnings.
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/part/geom_part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c
index 84dfe58..fc179a4 100644
--- a/sbin/geom/class/part/geom_part.c
+++ b/sbin/geom/class/part/geom_part.c
@@ -342,13 +342,13 @@ gpart_autofill(struct gctl_req *req)
return (ENOSPC);
if (!has_size) {
- asprintf(&val, "%jd", size);
+ asprintf(&val, "%llu", size);
if (val == NULL)
return (ENOMEM);
gctl_change_param(req, "size", -1, val);
}
if (!has_start) {
- asprintf(&val, "%jd", start);
+ asprintf(&val, "%llu", start);
if (val == NULL)
return (ENOMEM);
gctl_change_param(req, "start", -1, val);
OpenPOWER on IntegriCloud