Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Increase the `freqbuf' buffer that holds ...



details:   https://anonhg.NetBSD.org/src/rev/d6ada542e131
branches:  trunk
changeset: 331942:d6ada542e131
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Sep 01 13:43:31 2014 +0000

description:
Increase the `freqbuf' buffer that holds the result of humanize_number(). Now
it prints 1600 Mhz instead of 1 Ghz.
Pitty enough humanize_number(9) doesn't do 1.6 Ghz type output.

diffstat:

 sys/arch/arm/arm32/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5439e8a1a12a -r d6ada542e131 sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Mon Sep 01 12:25:52 2014 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Mon Sep 01 13:43:31 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.104 2014/03/28 21:39:09 matt Exp $   */
+/*     $NetBSD: cpu.c,v 1.105 2014/09/01 13:43:31 reinoud Exp $        */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -46,7 +46,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.104 2014/03/28 21:39:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.105 2014/09/01 13:43:31 reinoud Exp $");
 
 #include <sys/systm.h>
 #include <sys/conf.h>
@@ -651,7 +651,7 @@
        }
 
        if (ci->ci_data.cpu_cc_freq != 0) {
-               char freqbuf[8];
+               char freqbuf[10];
                humanize_number(freqbuf, sizeof(freqbuf), ci->ci_data.cpu_cc_freq,
                    "Hz", 1000);
 



Home | Main Index | Thread Index | Old Index