search for: dmi_system_reset_tim

Displaying 2 results from an estimated 2 matches for "dmi_system_reset_tim".

Did you mean: dmi_system_reset_timer
2015 Feb 10
0
[PATCH 3/6] gpllib: fix sizeof(char *) misuse
...count(uint16_t code, char *array, size_t len) { if (code == 0xFFFF) - strlcpy(array, "Unknown", sizeof array); + strlcpy(array, "Unknown", len); else - snprintf(array, sizeof array, "%u", code); + snprintf(array, len, "%u", code); } -static void dmi_system_reset_timer(uint16_t code, char *array) +static void dmi_system_reset_timer(uint16_t code, char *array, size_t len) { if (code == 0xFFFF) - strlcpy(array, "Unknown", sizeof array); + strlcpy(array, "Unknown", len); else - snprintf(array, sizeof array, "%u min", code);...
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 +++---