[syslinux] [RESEND][PATCH] gpllib: dmi: set default memory speed to"Unknown"

Sebastian Herbszt herbszt at gmx.de
Sat May 9 13:05:59 PDT 2009


Sebastian Herbszt wrote:
> The speed value is available since version 2.3 of the SMBIOS specification.
> Set the default speed string to "Unknown" for older versions.
> 
> - Sebastian
> 
> Index: syslinux-3.74-20-g3b80c26/com32/gpllib/dmi/dmi.c
> ===================================================================
> --- syslinux-3.74-20-g3b80c26.orig/com32/gpllib/dmi/dmi.c
> +++ syslinux-3.74-20-g3b80c26/com32/gpllib/dmi/dmi.c
> @@ -496,6 +496,7 @@ void dmi_decode(struct dmi_header *h, ui
>                         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);
> 

Erwan, anything wrong with this one?

- Sebastian




More information about the Syslinux mailing list