]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (gpt) fix compiler warnings [-Wformat]
authorKarel Zak <kzak@redhat.com>
Fri, 25 Jan 2013 19:04:11 +0000 (20:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Mar 2013 12:00:54 +0000 (13:00 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/gpt.c

index 2472935dc98b910650fbd4000dc87c3a384a01dc..2aef4620f6a4835704b98112be69d8280ab60e52 100644 (file)
@@ -1573,7 +1573,7 @@ static int gpt_add_partition(
        ents = gpt->ents;
 
        if (!partition_unused(&ents[partnum])) {
-               printf(_("Partition %d is already defined. "
+               printf(_("Partition %zd is already defined. "
                         "Delete it before re-adding it.\n"), partnum +1);
                return -EINVAL;
        }
@@ -1638,9 +1638,9 @@ static int gpt_add_partition(
 
        if (gpt_create_new_partition(cxt, partnum,
                                     user_f, user_l, &uuid, ents) != 0)
-               printf(_("Could not create partition %d\n"), partnum + 1);
+               printf(_("Could not create partition %zd\n"), partnum + 1);
        else {
-               printf(_("Created partition %d\n"), partnum + 1);
+               printf(_("Created partition %zd\n"), partnum + 1);
                cxt->label->nparts_cur++;
                fdisk_label_set_changed(cxt->label, 1);
        }