From: Karel Zak Date: Fri, 25 Jan 2013 19:04:11 +0000 (+0100) Subject: libfdisk: (gpt) fix compiler warnings [-Wformat] X-Git-Tag: v2.23-rc1~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=251d908831f24190ec8e982d78a0ee284fcc95ed;p=thirdparty%2Futil-linux.git libfdisk: (gpt) fix compiler warnings [-Wformat] Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 2472935dc9..2aef4620f6 100644 --- a/libfdisk/src/gpt.c +++ b/libfdisk/src/gpt.c @@ -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); }