Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2016 19:36:39 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r305234 - stable/9/cddl/contrib/opensolaris/lib/libzpool/common
Message-ID:  <201609011936.u81JadYJ025515@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Thu Sep  1 19:36:39 2016
New Revision: 305234
URL: https://svnweb.freebsd.org/changeset/base/305234

Log:
  MFstable/10 r305233:
  
  MFstable/11 r305225:
  
  MFC r303573:
  
  Cast result from third parameter to int instead of promoting it to size_t
  
  This resolves a -Wformat issue when the value is used as a format width
  precision specifier, i.e. %*s

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libzpool/common/util.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/cddl/   (props changed)
  stable/9/cddl/contrib/   (props changed)
  stable/9/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libzpool/common/util.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libzpool/common/util.c	Thu Sep  1 19:31:47 2016	(r305233)
+++ stable/9/cddl/contrib/opensolaris/lib/libzpool/common/util.c	Thu Sep  1 19:36:39 2016	(r305234)
@@ -108,7 +108,7 @@ show_vdev_stats(const char *desc, const 
 		(void) printf("%*s%s%*s%*s%*s %5s %5s %5s %5s %5s %5s %5s\n",
 		    indent, "",
 		    prefix,
-		    indent + strlen(prefix) - 25 - (vs->vs_space ? 0 : 12),
+		    (int)(indent + strlen(prefix) - 25 - (vs->vs_space ? 0 : 12)),
 		    desc,
 		    vs->vs_space ? 6 : 0, vs->vs_space ? used : "",
 		    vs->vs_space ? 6 : 0, vs->vs_space ? avail : "",



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