mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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:
parent
8fec2463ca
commit
9733a9e463
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228603
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue