Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4750
-gerrit
commit 356d64a97e3f0f7997f67b36b261db9b0498718e Author: Vladimir Serbinenko phcoder@gmail.com Date: Sun Jan 19 15:33:00 2014 +0100
smbios: Remove leading whitespaces in CPU name.
Change-Id: I7d20936e59271157f05948dae514150d5dee4c87 Signed-off-by: Vladimir Serbinenko phcoder@gmail.com --- src/arch/x86/boot/smbios.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c index 65bf538..b9373d4 100644 --- a/src/arch/x86/boot/smbios.c +++ b/src/arch/x86/boot/smbios.c @@ -99,6 +99,7 @@ static int smbios_processor_name(char *start) { char tmp[49] = "Unknown Processor Name"; u32 *_tmp = (u32 *)tmp; + char *ptr; struct cpuid_result res; int i;
@@ -115,7 +116,10 @@ static int smbios_processor_name(char *start) tmp[48] = 0; } } - return smbios_add_string(start, tmp); + + for (ptr = tmp; *ptr == ' '; ptr++); + + return smbios_add_string(start, ptr); }
static int smbios_write_type0(unsigned long *current, int handle)