From ecef4f25a68cd0e37f4f0d4a55d496e6c8a434bd Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 16 Dec 2011 23:09:31 +0000 Subject: In sbin/fsdb/fsdbutil.c, work around a clang false positive with printf format warnings and conditional operators. (See LLVM PR 11313 for more information.) MFC after: 1 week --- sbin/fsdb/fsdbutil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c index 7ed78a7..102d45c 100644 --- a/sbin/fsdb/fsdbutil.c +++ b/sbin/fsdb/fsdbutil.c @@ -193,8 +193,9 @@ printstat(const char *cp, ino_t inum, union dinode *dp) blocks = DIP(dp, di_blocks); gen = DIP(dp, di_gen); - printf("LINKCNT=%hd FLAGS=%#x BLKCNT=%jx GEN=%jx\n", DIP(dp, di_nlink), - DIP(dp, di_flags), (intmax_t)blocks, (intmax_t)gen); + printf("LINKCNT=%hd FLAGS=%#x BLKCNT=%jx GEN=%jx\n", + (short)DIP(dp, di_nlink), DIP(dp, di_flags), (intmax_t)blocks, + (intmax_t)gen); } -- cgit v1.1