public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] silence two compiler warnings
@ 2014-02-14 11:56 Benno Schulenberg
  2014-03-12 11:14 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Benno Schulenberg @ 2014-02-14 11:56 UTC (permalink / raw)
  To: Util-Linux

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]


Hi,

Attached patch silences for me two compiler warnings
about mismatching print specifiers.

Regards,

Benno

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-libfdisk-avoid-two-compiler-warnings-about-wrong-pri.patch --]
[-- Type: text/x-patch; name="0001-libfdisk-avoid-two-compiler-warnings-about-wrong-pri.patch", Size: 1432 bytes --]

From b854642834e08974e43b3eb05f4dcb852f29bc95 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Thu, 13 Feb 2014 21:36:43 +0100
Subject: [PATCH] libfdisk: avoid two compiler warnings about wrong print formats

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
 libfdisk/src/dos.c |    2 +-
 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 6af061b..db0666b 100644
--- a/libfdisk/src/dos.c
+++ b/libfdisk/src/dos.c
@@ -303,7 +303,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 dc6e6c7..eb15d8c 100644
--- a/libfdisk/src/gpt.c
+++ b/libfdisk/src/gpt.c
@@ -1850,7 +1850,7 @@ static int gpt_add_partition(
 
 	if (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);
 	else {
 		struct fdisk_parttype *t;
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-12 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 11:56 [patch] silence two compiler warnings Benno Schulenberg
2014-03-12 11:14 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox