summaryrefslogtreecommitdiff
path: root/dmioem.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2021-01-15 17:20:22 +0100
committerJean Delvare <jdelvare@suse.de>2021-01-15 17:20:22 +0100
commit21f37e0f65d0f7536550ab7e7eb1cc38a077b54b (patch)
treea2cfe8c8fe99c18f2e70f49948432444ff751a0c /dmioem.c
parent89efc6b9563a70da9f2a91c05455ba9e7b37e126 (diff)
downloaddmidecode-git-21f37e0f65d0f7536550ab7e7eb1cc38a077b54b.tar.gz
dmidecode: Fix format warnings
Use the appropriate format specifiers to make the compiler happy. This fixes support ticket #110421: https://savannah.nongnu.org/support/index.php?110421 Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'dmioem.c')
-rw-r--r--dmioem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmioem.c b/dmioem.c
index 180a95d..c8dc8c9 100644
--- a/dmioem.c
+++ b/dmioem.c
@@ -146,7 +146,7 @@ static void dmi_print_hp_net_iface_rec(u8 id, u8 bus, u8 dev, const u8 *mac)
if (id == 0xFF)
id = ++nic_ctr;
- sprintf(attr, "NIC %hu", id);
+ sprintf(attr, "NIC %hhu", id);
if (dev == 0x00 && bus == 0x00)
pr_attr(attr, "Disabled");
else if (dev == 0xFF && bus == 0xFF)