[patch] silence two compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

From b854642834e08974e43b3eb05f4dcb852f29bc95 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
---
 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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux