Module Name:    src
Committed By:   reinoud
Date:           Mon Sep  1 13:43:32 UTC 2014

Modified Files:
        src/sys/arch/arm/arm32: cpu.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/arch/arm/arm32/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm32/cpu.c
diff -u src/sys/arch/arm/arm32/cpu.c:1.104 src/sys/arch/arm/arm32/cpu.c:1.105
--- src/sys/arch/arm/arm32/cpu.c:1.104	Fri Mar 28 21:39:09 2014
+++ src/sys/arch/arm/arm32/cpu.c	Mon Sep  1 13:43:31 2014
@@ -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 @@ identify_arm_cpu(device_t dv, struct cpu
 	}
 
 	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);
 

Reply via email to