summaryrefslogtreecommitdiffstats
path: root/fdisks/sfdisk.c
diff options
context:
space:
mode:
authorThierry Reding2012-09-19 11:48:46 +0200
committerKarel Zak2012-09-21 12:14:04 +0200
commit4862db73e8cf1ee519bd8f251fdd21c211cb4dcd (patch)
treebab0d162d627b9086226bcdd401e2cda1fa48aed /fdisks/sfdisk.c
parenthwclock: don't warp the systemtime if the RTC is in UTC (diff)
downloadkernel-qcow2-util-linux-4862db73e8cf1ee519bd8f251fdd21c211cb4dcd.tar.gz
kernel-qcow2-util-linux-4862db73e8cf1ee519bd8f251fdd21c211cb4dcd.tar.xz
kernel-qcow2-util-linux-4862db73e8cf1ee519bd8f251fdd21c211cb4dcd.zip
sfdisk: Fix format specifiers for size_t
The proper specifier for size_t is %zu. %lu will work fine on 64-bit architectures but not on 32-bit. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'fdisks/sfdisk.c')
-rw-r--r--fdisks/sfdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/sfdisk.c b/fdisks/sfdisk.c
index 2027202ad..da5c60612 100644
--- a/fdisks/sfdisk.c
+++ b/fdisks/sfdisk.c
@@ -1426,7 +1426,7 @@ extended_partition(char *dev, int fd, struct part_desc *ep, struct disk_desc *z)
cp = s->data + 0x1be;
if (pno + 4 >= ARRAY_SIZE(z->partitions)) {
- warnx(_("too many partitions - ignoring those past nr (%ld)\n"),
+ warnx(_("too many partitions - ignoring those past nr (%zu)\n"),
pno - 1);
break;
}
@@ -1504,7 +1504,7 @@ bsd_partition(char *dev, int fd, struct part_desc *ep, struct disk_desc *z) {
while (bp - bp0 < BSD_MAXPARTITIONS && bp - bp0 < l->d_npartitions) {
if (pno + 1 >= ARRAY_SIZE(z->partitions)) {
warnx(_("too many partitions - ignoring those "
- "past nr (%ld)\n"), pno - 1);
+ "past nr (%zu)\n"), pno - 1);
break;
}
if (bp->p_fstype != BSD_FS_UNUSED) {