From: Benno Schulenberg <bensberg@justemail.net>
To: "Util-Linux" <util-linux@vger.kernel.org>
Subject: [patch] silence two compiler warnings
Date: Fri, 14 Feb 2014 12:56:02 +0100 [thread overview]
Message-ID: <1392378962.7365.83374729.31A9DCD2@webmail.messagingengine.com> (raw)
[-- 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
next reply other threads:[~2014-02-14 12:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 11:56 Benno Schulenberg [this message]
2014-03-12 11:14 ` [patch] silence two compiler warnings Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392378962.7365.83374729.31A9DCD2@webmail.messagingengine.com \
--to=bensberg@justemail.net \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox