diff options
author | Francesco Cosoleto | 2011-11-08 23:14:53 +0100 |
---|---|---|
committer | Karel Zak | 2011-11-09 10:04:24 +0100 |
commit | 07ce7003b9276ae9aa3481d69cbf914fd1364f96 (patch) | |
tree | 25d6f1e431d212a20ac487c513744da48f6c0cb3 /libblkid | |
parent | fsck.minix: remove unnecessary memset calls (diff) | |
download | kernel-qcow2-util-linux-07ce7003b9276ae9aa3481d69cbf914fd1364f96.tar.gz kernel-qcow2-util-linux-07ce7003b9276ae9aa3481d69cbf914fd1364f96.tar.xz kernel-qcow2-util-linux-07ce7003b9276ae9aa3481d69cbf914fd1364f96.zip |
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 <cosoleto@gmail.com>
Diffstat (limited to 'libblkid')
-rw-r--r-- | 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 bada3a83a..215c67114 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; |