diff options
author | dim <dim@FreeBSD.org> | 2011-12-16 23:09:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-16 23:09:31 +0000 |
commit | ecef4f25a68cd0e37f4f0d4a55d496e6c8a434bd (patch) | |
tree | e1325ed3d93084a085254a1611ee1026e8bb17f0 /sbin | |
parent | e91eea2c9e594c09273e1996154a14f311b08f8d (diff) | |
download | FreeBSD-src-ecef4f25a68cd0e37f4f0d4a55d496e6c8a434bd.zip FreeBSD-src-ecef4f25a68cd0e37f4f0d4a55d496e6c8a434bd.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsdb/fsdbutil.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |