Date: Wed, 4 Dec 2013 00:28:45 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258901 - head/usr.sbin/mfiutil Message-ID: <201312040028.rB40Sj9l061474@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Wed Dec 4 00:28:44 2013 New Revision: 258901 URL: http://svnweb.freebsd.org/changeset/base/258901 Log: svn r251516 resized the buf argument a bit too much. Pass a hardcoded size of 6 to humanize_number() to resolve this. PR: 184405 Submitted by: jhb MFC after: 2 weeks Modified: head/usr.sbin/mfiutil/mfi_show.c Modified: head/usr.sbin/mfiutil/mfi_show.c ============================================================================== --- head/usr.sbin/mfiutil/mfi_show.c Wed Dec 4 00:10:37 2013 (r258900) +++ head/usr.sbin/mfiutil/mfi_show.c Wed Dec 4 00:28:44 2013 (r258901) @@ -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?201312040028.rB40Sj9l061474>