From: Francesco Cosoleto <cosoleto@gmail.com>
To: util-linux@vger.kernel.org
Cc: Francesco Cosoleto <cosoleto@gmail.com>
Subject: [PATCH] libblkid: silence a format string warning
Date: Tue, 8 Nov 2011 23:14:53 +0100 [thread overview]
Message-ID: <1320790495-29290-2-git-send-email-cosoleto@gmail.com> (raw)
In-Reply-To: <1320790495-29290-1-git-send-email-cosoleto@gmail.com>
Fix the following clang warning:
exfat.c:130:41: warning: conversion specifies type 'unsigned short' but
the argument has type 'uint8_t' (aka 'unsigned char') [-Wformat]
blkid_probe_sprintf_version(pr, "%hu.%hu",
~~^
%c
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
---
libblkid/src/superblocks/exfat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libblkid/src/superblocks/exfat.c b/libblkid/src/superblocks/exfat.c
index bada3a8..215c671 100644
--- a/libblkid/src/superblocks/exfat.c
+++ b/libblkid/src/superblocks/exfat.c
@@ -127,7 +127,7 @@ static int probe_exfat(blkid_probe pr, const struct blkid_idmag *mag)
sb->volume_serial[3], sb->volume_serial[2],
sb->volume_serial[1], sb->volume_serial[0]);
- blkid_probe_sprintf_version(pr, "%hu.%hu",
+ blkid_probe_sprintf_version(pr, "%u.%u",
sb->version.major, sb->version.minor);
return 0;
--
1.7.3.4
next prev parent reply other threads:[~2011-11-08 22:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 22:14 [PATCH] fsck.minix: remove unnecessary memset calls Francesco Cosoleto
2011-11-08 22:14 ` Francesco Cosoleto [this message]
2011-11-08 22:14 ` [PATCH] whereis: remove unused value warning Francesco Cosoleto
2011-11-08 22:14 ` [PATCH] whereis: silence comparison between signed/unsigned warning Francesco Cosoleto
2011-11-09 9:07 ` 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=1320790495-29290-2-git-send-email-cosoleto@gmail.com \
--to=cosoleto@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).