search for: statbuffer

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

2009 Apr 12
0
[PATCH] hdt: only display MAC address for network cards
...ci.c +++ syslinux-3.74-20-g3b80c26/com32/hdt/hdt-menu-pci.c @@ -117,13 +117,13 @@ static void compute_pci_device(struct s_ menu->items_count++; if (hardware->is_pxe_valid == true) { - snprintf(buffer,sizeof buffer,"MAC Addr. : %s",hardware->pxe.mac_addr); - snprintf(statbuffer,sizeof statbuffer,"MAC Address : %s",hardware->pxe.mac_addr); - add_item(buffer,statbuffer,OPT_INACTIVE,NULL,0); - menu->items_count++; - if ((hardware->pxe.pci_device != NULL) && (hardware->pxe.pci_device == pci_device)) { + snprintf(buffer,si...
2014 Nov 22
1
Get rid of printf format warning format ‘%llx’ expects type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’
...menu *menu) for (int j = 0; j < count; j++) { get_type(map[j].type, type, 14); snprintf(buffer, sizeof buffer, - "%016llx - %016llx (%s)", + "%016" PRIx64 " - %016" PRIx64 " (%s)", map[j].addr, map[j].size, remove_spaces(type)); snprintf(statbuffer, sizeof statbuffer, - "%016llx - %016llx (%s)", + "%016" PRIx64 " - %016" PRIx64 " (%s)", map[j].addr, map[j].size, remove_spaces(type)); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; diff --git a/com32/lib/syslinux/...
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 +++---