From: Benno Schulenberg Date: Thu, 13 Feb 2014 20:36:43 +0000 (+0100) Subject: libfdisk: avoid two compiler warnings about wrong print formats X-Git-Tag: v2.25-rc1~430 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e;p=thirdparty%2Futil-linux.git libfdisk: avoid two compiler warnings about wrong print formats Signed-off-by: Benno Schulenberg --- diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 20807a3154..be73b805de 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -324,7 +324,7 @@ static void dos_init(struct fdisk_context *cxt) fdisk_warnx(cxt, _("The size of this disk is %s (%ju bytes). DOS " "partition table format can not be used on drives for " - "volumes larger than %ju bytes for %lu-byte " + "volumes larger than %lu bytes for %lu-byte " "sectors. Use GUID partition table format (GPT)."), szstr, bytes, UINT_MAX * cxt->sector_size, diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 4920fe75ba..9d55860cd1 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -1865,7 +1865,7 @@ static int gpt_add_partition( if ((rc = gpt_create_new_partition(cxt, partnum, user_f, user_l, &typeid, ents) != 0)) { - fdisk_warnx(cxt, _("Could not create partition %ju"), partnum + 1); + fdisk_warnx(cxt, _("Could not create partition %zu"), partnum + 1); goto done; } else { struct fdisk_parttype *t;