[PATCH] cpu: cpufreq: spell Ghz as GHz and Mhz and MHz

Colin King colin.king at canonical.com
Fri Dec 7 00:41:07 UTC 2012


From: Colin Ian King <colin.king at canonical.com>

The abbreviation GHz and MHz have been wrong for ages. These
need correcting.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/cpu/cpufreq/cpufreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cpu/cpufreq/cpufreq.c b/src/cpu/cpufreq/cpufreq.c
index 7136e7d..98123f1 100644
--- a/src/cpu/cpufreq/cpufreq.c
+++ b/src/cpu/cpufreq/cpufreq.c
@@ -220,11 +220,11 @@ static char *HzToHuman(unsigned long hz)
 	Hz = hz;
 
 	if (Hz > 1500000) {
-		snprintf(buffer, sizeof(buffer), "%6.2f Ghz",
+		snprintf(buffer, sizeof(buffer), "%6.2f GHz",
 			(Hz+50000.0) / 1000000);
 		return buffer;
 	} else if (Hz > 1000) {
-		snprintf(buffer, sizeof(buffer), "%6lli Mhz",
+		snprintf(buffer, sizeof(buffer), "%6lli MHz",
 			(Hz+500) / 1000);
 		return buffer;
 	} else {
-- 
1.8.0




More information about the fwts-devel mailing list