diff -ur lilo-24.0/src/geometry.c lilo-24.0-alt-format/src/geometry.c --- lilo-24.0/src/geometry.c 2014-03-03 22:50:36.000000000 +0200 +++ lilo-24.0-alt-format/src/geometry.c 2014-03-03 22:57:41.000000000 +0200 @@ -400,7 +400,7 @@ if (i!=7 && i!=15 && i!=31 && i!=63 && i!=128) die("disk=%s: illegal value for max-partitions(%d)", disk, i); } else { - die("Implementation restriction: max-partitions on major device > %d", (int)nelem(max_partno)-1); + die("Implementation restriction: max-partitions on major device > %zu", nelem(max_partno)-1); } } entry->bios = bios ? to_number(bios) : -1; @@ -543,7 +543,7 @@ lvmfd = dev_open(&dev, lbm->lv_dev, O_RDONLY); if (lvmfd < 0) - die("can't open LVM block device %#x\n", (int)lbm->lv_dev); + die("can't open LVM block device %#x\n", (unsigned int)lbm->lv_dev); last_dev = lbm->lv_dev; } if (ioctl(lvmfd, LV_BMAP, lbm) < 0) { @@ -1479,7 +1479,7 @@ if (dm_target->start <= sector && sector < (dm_target->start+dm_target->length)) break; if (!dm_target) - die("device-mapper: Sector outside mapped device? (%d: %u/%"PRIu64")", + die("device-mapper: Sector outside mapped device? (%"PRIu64": %u/%"PRIu64")", (int) geo->base_dev, sector, (uint64_t)(dm_table->target ? (dm_table->target->start+dm_table->target->length) : 0));