diff options
author | Karel Zak | 2013-01-25 20:04:11 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 13:00:54 +0100 |
commit | 251d908831f24190ec8e982d78a0ee284fcc95ed (patch) | |
tree | 10d1bea9f53e0a3746fa18696a3decceb3fb40bd /libfdisk/src/gpt.c | |
parent | libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNO (diff) | |
download | kernel-qcow2-util-linux-251d908831f24190ec8e982d78a0ee284fcc95ed.tar.gz kernel-qcow2-util-linux-251d908831f24190ec8e982d78a0ee284fcc95ed.tar.xz kernel-qcow2-util-linux-251d908831f24190ec8e982d78a0ee284fcc95ed.zip |
libfdisk: (gpt) fix compiler warnings [-Wformat]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/gpt.c')
-rw-r--r-- | libfdisk/src/gpt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c index 2472935dc..2aef4620f 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); } |