From 07ce7003b9276ae9aa3481d69cbf914fd1364f96 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Tue, 8 Nov 2011 23:14:53 +0100 Subject: [PATCH] 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 --- libblkid/src/superblocks/exfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3