diff options
author | Benno Schulenberg | 2014-02-13 21:36:43 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-12 12:14:34 +0100 |
commit | 27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e (patch) | |
tree | a0823c0bd2358b8aa14cdc613a78efc2a74a10d5 | |
parent | docs: add a new command boilerplate code (diff) | |
download | kernel-qcow2-util-linux-27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e.tar.gz kernel-qcow2-util-linux-27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e.tar.xz kernel-qcow2-util-linux-27aadd8bf68ca166cb4f83aa3ed72d69f1bfba2e.zip |
libfdisk: avoid two compiler warnings about wrong print formats
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
-rw-r--r-- | libfdisk/src/dos.c | 2 | ||||
-rw-r--r-- | libfdisk/src/gpt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 20807a315..be73b805d 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 4920fe75b..9d55860cd 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; |