Increase size of buffer for humanize_number(3) to print cache sizes
so that it can return 128KB, 256KB and 512KB properly instead of truncated 0MB or rounded 1MB. Problem reported by nisimura@ on port-amd64 and port-i386.
This commit is contained in:
parent
cbd3c882e5
commit
38357705f9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: i386.c,v 1.15 2009/03/12 09:10:15 yamt Exp $ */
|
||||
/* $NetBSD: i386.c,v 1.16 2009/03/16 12:25:40 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -57,7 +57,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: i386.c,v 1.15 2009/03/12 09:10:15 yamt Exp $");
|
||||
__RCSID("$NetBSD: i386.c,v 1.16 2009/03/16 12:25:40 tsutsui Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -83,7 +83,7 @@ __RCSID("$NetBSD: i386.c,v 1.15 2009/03/12 09:10:15 yamt Exp $");
|
|||
#include "../cpuctl.h"
|
||||
|
||||
/* Size of buffer for printing humanized numbers */
|
||||
#define HUMAN_BUFSIZE 5
|
||||
#define HUMAN_BUFSIZE sizeof("999KB")
|
||||
|
||||
#define x86_cpuid(a,b) x86_cpuid2((a),0,(b))
|
||||
|
||||
|
|
Loading…
Reference in New Issue