Sebastian Herbszt
2009-Apr-17 17:28 UTC
[syslinux] [PATCH] hdt: fix format string warnings
Fix format string warnings spit by the compiler. - Sebastian Index: syslinux-3.75-pre4-46-ga7dd659/com32/hdt/hdt-cli-pci.c ==================================================================--- syslinux-3.75-pre4-46-ga7dd659.orig/com32/hdt/hdt-cli-pci.c +++ syslinux-3.75-pre4-46-ga7dd659/com32/hdt/hdt-cli-pci.c @@ -122,8 +122,7 @@ void show_pci_device(struct s_hardware * more_printf("Mac Address : %s\n", hardware->pxe.mac_addr); if ((hardware->pxe.pci_device != NULL) && (hardware->pxe.pci_device == pci_device)) - more_printf("PXE : Current boot device\n", - func); + more_printf("PXE : Current boot device\n"); } } @@ -198,7 +197,6 @@ static void show_pci_devices(struct s_ha ("%02d: %04x:%04x [%04x:%04x] Kmod:%s\n", i, pci_device->vendor, pci_device->product, pci_device->sub_vendor, - pci_device->sub_product, kernel_modules, pci_device->sub_product, kernel_modules); } } Index: syslinux-3.75-pre4-46-ga7dd659/com32/hdt/hdt-menu-dmi.c ==================================================================--- syslinux-3.75-pre4-46-ga7dd659.orig/com32/hdt/hdt-menu-dmi.c +++ syslinux-3.75-pre4-46-ga7dd659/com32/hdt/hdt-menu-dmi.c @@ -405,7 +405,7 @@ void compute_ipmi(struct s_my_menu *menu snprintf(buffer, sizeof buffer, "Spec. Version : %u.%u", dmi->ipmi.major_specification_version, dmi->ipmi.minor_specification_version); - snprintf(statbuffer, sizeof statbuffer, "Specification Version: %u.u", + snprintf(statbuffer, sizeof statbuffer, "Specification Version: %u.%u", dmi->ipmi.major_specification_version, dmi->ipmi.minor_specification_version); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); @@ -524,7 +524,7 @@ void compute_battery(struct s_my_menu *m snprintf(buffer, sizeof buffer, "Maximum Error : %s", dmi->battery.maximum_error); - snprintf(statbuffer, sizeof statbuffer, "Maximum Error (%) : %s", + snprintf(statbuffer, sizeof statbuffer, "Maximum Error : %s", dmi->battery.maximum_error); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++;