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
This commit is contained in:
Dimitry Andric 2011-12-16 23:09:31 +00:00
parent 8fec2463ca
commit 9733a9e463
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}