diff options
author | Jean Delvare <jdelvare@suse.de> | 2021-01-15 17:20:22 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2021-01-15 17:20:22 +0100 |
commit | 21f37e0f65d0f7536550ab7e7eb1cc38a077b54b (patch) | |
tree | a2cfe8c8fe99c18f2e70f49948432444ff751a0c /dmioem.c | |
parent | 89efc6b9563a70da9f2a91c05455ba9e7b37e126 (diff) | |
download | dmidecode-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |