summaryrefslogtreecommitdiff
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-06-18 15:48:34 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-24 10:13:24 +0200
commitc6643870829d613d136dac82ae0cd4ab3cbf53c2 (patch)
tree99b90b6fb5dbfe0de47fc347104e76e7f3befd93 /src/northbridge/intel
parentb38e0c3509d15d2be88bf194b637064bb1e80075 (diff)
Drop leading spaces from CPU name string
This is as per Intel's suggestion on how to display their name strings. Change-Id: Ie82341305e58baa8041e50a61a11b395fa7d9582 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1298 Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/report_platform.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/northbridge/intel/sandybridge/report_platform.c b/src/northbridge/intel/sandybridge/report_platform.c
index d59cfe94fc..a59e839b7a 100644
--- a/src/northbridge/intel/sandybridge/report_platform.c
+++ b/src/northbridge/intel/sandybridge/report_platform.c
@@ -29,7 +29,7 @@ static void report_cpu_info(void)
{
struct cpuid_result cpuidr;
u32 i, index;
- char cpu_string[50]; /* 48 bytes are reported */
+ char cpu_string[50], *cpu_name = cpu_string; /* 48 bytes are reported */
int vt, txt, aes;
const char *mode[] = {"NOT ", ""};
@@ -47,8 +47,12 @@ static void report_cpu_info(void)
*p++ = cpuidr.edx;
}
}
+ /* Skip leading spaces in CPU name string */
+ while (cpu_name[0] == ' ')
+ cpu_name++;
+
cpuidr = cpuid(1);
- printk(BIOS_DEBUG, "CPU id(%x): %s\n", cpuidr.eax, cpu_string);
+ printk(BIOS_DEBUG, "CPU id(%x): %s\n", cpuidr.eax, cpu_name);
aes = (cpuidr.ecx & (1 << 25)) ? 1 : 0;
txt = (cpuidr.ecx & (1 << 6)) ? 1 : 0;
vt = (cpuidr.ecx & (1 << 5)) ? 1 : 0;