]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: avoid two compiler warnings about wrong print formats
authorBenno Schulenberg <bensberg@justemail.net>
Thu, 13 Feb 2014 20:36:43 +0000 (21:36 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2014 11:14:34 +0000 (12:14 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
libfdisk/src/dos.c
libfdisk/src/gpt.c

index 20807a3154fd9f97c4243ab67c0b9d6208ebd3fe..be73b805de5a30f3a1c7067e273ea81ffbec8779 100644 (file)
@@ -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,
index 4920fe75ba9cb90e7dd1b80ae7c45993efb800be..9d55860cd1b186e091522ea62feb0ef08f123c3a 100644 (file)
@@ -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;