[coreboot-gerrit] Patch set updated for coreboot: 82c85cf smbios: Remove leading whitespaces in CPU name.

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Wed Feb 5 12:23:16 CET 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4750

-gerrit

commit 82c85cfd834fc9ecc4fdbb49200e080c45a27c4c
Author: Vladimir Serbinenko <phcoder at 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 at 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)



More information about the coreboot-gerrit mailing list