From: Francesco Cosoleto Date: Tue, 8 Nov 2011 22:14:53 +0000 (+0100) Subject: libblkid: silence a format string warning [-Wformat] X-Git-Tag: v2.21-rc1~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07ce7003b9276ae9aa3481d69cbf914fd1364f96;p=thirdparty%2Futil-linux.git libblkid: silence a format string warning [-Wformat] 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 --- diff --git a/libblkid/src/superblocks/exfat.c b/libblkid/src/superblocks/exfat.c index bada3a83aa..215c67114a 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;