svn commit: r260324 - stable/10/usr.sbin/mfiutil
Sean Bruno
sbruno at FreeBSD.org
Sun Jan 5 17:29:54 UTC 2014
Author: sbruno
Date: Sun Jan 5 17:29:53 2014
New Revision: 260324
URL: http://svnweb.freebsd.org/changeset/base/260324
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/10/usr.sbin/mfiutil/mfi_show.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- stable/10/usr.sbin/mfiutil/mfi_show.c Sun Jan 5 16:45:34 2014 (r260323)
+++ stable/10/usr.sbin/mfiutil/mfi_show.c Sun Jan 5 17:29:53 2014 (r260324)
@@ -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) {
More information about the svn-src-all
mailing list