diff options
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/disklabel.c | 8 | ||||
-rw-r--r-- | sbin/disklabel/editor.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 97f11b55014..2facc7128c3 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.188 2013/09/10 15:17:46 krw Exp $ */ +/* $OpenBSD: disklabel.c,v 1.189 2013/10/03 18:50:30 krw Exp $ */ /* * Copyright (c) 1987, 1993 @@ -1320,7 +1320,7 @@ checklabel(struct disklabel *lp) part = 'a' + i; pp = &lp->d_partitions[i]; if (DL_GETPSIZE(pp) == 0 && DL_GETPOFFSET(pp) != 0) - warnx("warning, partition %c: size 0, but offset %lld", + warnx("warning, partition %c: size 0, but offset %llu", part, DL_GETPOFFSET(pp)); #ifdef SUN_CYLCHECK if (lp->d_flags & D_VENDOR) { @@ -1360,8 +1360,8 @@ checklabel(struct disklabel *lp) part = 'a' + i; pp = &lp->d_partitions[i]; if (DL_GETPSIZE(pp) || DL_GETPOFFSET(pp)) - warnx("warning, unused partition %c: size %lld " - "offset %lld", part, DL_GETPSIZE(pp), + warnx("warning, unused partition %c: size %llu " + "offset %llu", part, DL_GETPSIZE(pp), DL_GETPOFFSET(pp)); } return (errors > 0); diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index f74f5244b65..393516ee9ee 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.272 2013/09/10 15:17:46 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.273 2013/10/03 18:50:30 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -1217,7 +1217,7 @@ getuint64(struct disklabel *lp, char *prompt, char *helpstring, if (*p == '+' || *p == '-') operator = *p++; percent = strtod(p, NULL) / 100.0; - snprintf(buf, sizeof(buf), "%lld", + snprintf(buf, sizeof(buf), "%llu", DL_GETDSIZE(lp)); break; case '&': |