Sebastian Herbszt
2009-Mar-14 20:22 UTC
[syslinux] [PATCH] gpllib: dmi: set default memory speed to "Unknown"
The speed value is available since version 2.3 of the SMBIOS specification. Set the default speed string to "Unknown" for older versions. - Sebastian diff --git a/com32/gpllib/dmi/dmi.c b/com32/gpllib/dmi/dmi.c index a2a08b5..a43461a 100644 --- a/com32/gpllib/dmi/dmi.c +++ b/com32/gpllib/dmi/dmi.c @@ -496,6 +496,7 @@ void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi *dmi) if (h->length < 0x15) break; dmi->memory_count++; s_memory *mem = &dmi->memory[dmi->memory_count-1]; + sprintf(mem->speed,"%s","Unknown"); dmi->memory[dmi->memory_count-1].filled=true; dmi_memory_array_error_handle(WORD(data + 0x06),mem->error); dmi_memory_device_width(WORD(data + 0x08),mem->total_width);