Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 17:33:11 +0000 (UTC)
From:      Sean Bruno <sbruno@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: r260325 - stable/9/usr.sbin/mfiutil
Message-ID:  <201401051733.s05HXBbD093042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Sun Jan  5 17:33:10 2014
New Revision: 260325
URL: http://svnweb.freebsd.org/changeset/base/260325

Log:
  MFC r258901:
  
  svn r251516 resized the buf argument a bit too much. Pass a hardcoded
  size of 6 to humanize_number() to resolve this.
  
  PR:     bin/184405
  Submitted by:   jhb

Modified:
  stable/9/usr.sbin/mfiutil/mfi_show.c
Directory Properties:
  stable/9/usr.sbin/mfiutil/   (props changed)

Modified: stable/9/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- stable/9/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 17:29:53 2014	(r260324)
+++ stable/9/usr.sbin/mfiutil/mfi_show.c	Sun Jan  5 17:33:10 2014	(r260325)
@@ -320,7 +320,7 @@ print_pd(struct mfi_pd_info *info, int s
 	const char *s;
 	char buf[256];
 
-	humanize_number(buf, sizeof(buf), info->raw_size * 512, "",
+	humanize_number(buf, 6, info->raw_size * 512, "",
 	    HN_AUTOSCALE, HN_B | HN_NOSPACE |HN_DECIMAL);
 	printf("(%6s) ", buf);
 	if (info->state.ddf.v.pd_type.is_foreign) {



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