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>
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;
}
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) {