search for: dmi_decode

Displaying 3 results from an estimated 3 matches for "dmi_decode".

2009 Apr 10
2
[RESEND][PATCH] gpllib: dmi: set default memory speed to "Unknown"
...quot; 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;...
2015 Feb 10
0
[PATCH 3/6] gpllib: fix sizeof(char *) misuse
...*array, size_t len) { if (code == 0xFFFF) - strlcpy(array, "Unknown", sizeof array); + strlcpy(array, "Unknown", len); else - snprintf(array, sizeof array, "%u min", code); + snprintf(array, len, "%u min", code); } /* @@ -947,13 +947,17 @@ void dmi_decode(struct dmi_header *h, uint16_t ver, s_dmi * dmi) dmi_system_reset_boot_option((data[0x04] >> 3) & 0x3), sizeof dmi->system.system_reset.boot_option_on_limit); dmi_system_reset_count(WORD(data + 0x05), - dmi->system.system_reset.reset_count); + dmi->syste...
2015 Feb 10
6
[PATCH 0/6] fix some compiler warnings
These patches fix a few compiler warnings. Tested on top of commit aee0dc5565711ef5be7c30fb5fc1c5f3f98db09f Jonathan Boeing (6): Use z width specifier when printing size_t variable pxe: fix truncation warning gpllib: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse com32/gpllib/dmi/dmi.c | 24 +++---