summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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