aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2009-04-17 19:28:03 +0200
committerH. Peter Anvin <hpa@zytor.com>2009-04-17 11:04:10 -0700
commitce64bcb9e7ed34d7a54a79c8291f43563ba6a069 (patch)
treeeaa6dab84258b7b792da00a918d65b21c48d0aec
parentf0fb84e96f44cbfb0f5fecc53bba9614df2343d3 (diff)
downloadsyslinux.git-ce64bcb9e7ed34d7a54a79c8291f43563ba6a069.tar.gz
syslinux.git-ce64bcb9e7ed34d7a54a79c8291f43563ba6a069.tar.xz
syslinux.git-ce64bcb9e7ed34d7a54a79c8291f43563ba6a069.zip
hdt: fix format string warnings
Fix format string warnings spit by the compiler. - Sebastian
-rw-r--r--com32/hdt/hdt-cli-pci.c4
-rw-r--r--com32/hdt/hdt-menu-dmi.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/com32/hdt/hdt-cli-pci.c b/com32/hdt/hdt-cli-pci.c
index 31cfe771..87c2bf91 100644
--- a/com32/hdt/hdt-cli-pci.c
+++ b/com32/hdt/hdt-cli-pci.c
@@ -122,8 +122,7 @@ void show_pci_device(struct s_hardware *hardware, const char *item)
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_hardware *hardware)
("%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);
}
}
diff --git a/com32/hdt/hdt-menu-dmi.c b/com32/hdt/hdt-menu-dmi.c
index 3915f2bf..d6bd8a47 100644
--- a/com32/hdt/hdt-menu-dmi.c
+++ b/com32/hdt/hdt-menu-dmi.c
@@ -405,7 +405,7 @@ void compute_ipmi(struct s_my_menu *menu, s_dmi * dmi)
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 *menu, s_dmi * dmi)
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++;