From patchwork Fri Dec 7 00:41:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 204362 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 0EDCD2C00AA for ; Fri, 7 Dec 2012 11:41:11 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tgm05-0004N8-U3; Fri, 07 Dec 2012 00:41:09 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Tgm04-0004Mt-FY for fwts-devel@lists.ubuntu.com; Fri, 07 Dec 2012 00:41:08 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Tgm04-0001r6-Cy for fwts-devel@lists.ubuntu.com; Fri, 07 Dec 2012 00:41:08 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] cpu: cpufreq: spell Ghz as GHz and Mhz and MHz Date: Fri, 7 Dec 2012 00:41:07 +0000 Message-Id: <1354840867-7663-1-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King The abbreviation GHz and MHz have been wrong for ages. These need correcting. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- 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 {