mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
tree-wide: Fix Wformat warnings
The latest clang has started catching more integer promotions which cause us to pass the wrong type to printf() format specifiers so let's fix those. (cherry picked from commit c73d14c43e7998ca54011875ad25afc634d57498) (cherry picked from commit e129e3a8618b1b56f70978cb1db1d66a0fdcd573) (cherry picked from commit 44e3f1cc351b6097d8a6251bc8bf8468247b98b7) (cherry picked from commit 7b9f8e99f3d3678b3245b731b6e7e263f7d60736)
This commit is contained in:
parent
5469d511b3
commit
e9c2bd22b3
@ -476,7 +476,7 @@ static int cd_profiles(Context *c) {
|
||||
|
||||
switch (feature) {
|
||||
case 0x00:
|
||||
log_debug("GET CONFIGURATION: feature 'profiles', with %u entries", features[i + 3] / 4);
|
||||
log_debug("GET CONFIGURATION: feature 'profiles', with %u entries", features[i + 3] / 4U);
|
||||
feature_profiles(c, features + i + 4, MIN(features[i + 3], len - i - 4));
|
||||
break;
|
||||
default:
|
||||
|
@ -399,7 +399,7 @@ static void dmi_memory_device_manufacturer_id(
|
||||
/* LSB is 7-bit Odd Parity number of continuation codes */
|
||||
if (code != 0)
|
||||
printf("MEMORY_DEVICE_%u_%s=Bank %d, Hex 0x%02X\n", slot_num, attr_suffix,
|
||||
(code & 0x7F) + 1, code >> 8);
|
||||
(code & 0x7F) + 1, (uint16_t) (code >> 8));
|
||||
}
|
||||
|
||||
static void dmi_memory_device_product_id(
|
||||
|
Loading…
x
Reference in New Issue
Block a user