Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 23:09:31 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228603 - head/sbin/fsdb
Message-ID:  <201112162309.pBGN9VUI031031@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec 16 23:09:31 2011
New Revision: 228603
URL: http://svn.freebsd.org/changeset/base/228603

Log:
  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

Modified:
  head/sbin/fsdb/fsdbutil.c

Modified: head/sbin/fsdb/fsdbutil.c
==============================================================================
--- head/sbin/fsdb/fsdbutil.c	Fri Dec 16 22:35:19 2011	(r228602)
+++ head/sbin/fsdb/fsdbutil.c	Fri Dec 16 23:09:31 2011	(r228603)
@@ -193,8 +193,9 @@ printstat(const char *cp, ino_t inum, un
 
     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);
 }
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112162309.pBGN9VUI031031>