diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-30 09:28:56 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:33 +0200 |
commit | 5570a09702b2a4c77772617d5fce97b6b70ec03f (patch) | |
tree | 6894fe53f7ed84cce0f20d1190648e0797ca8023 /src/sysupdate | |
parent | 2676befc73b3f40974ddad84972e873e5b826262 (diff) | |
download | systemd-5570a09702b2a4c77772617d5fce97b6b70ec03f.tar.gz |
tree-wide: Fix format specifier warnings for %x
Unfortunately, hex output can only be produced with unsigned types. Some
cases can be fixed by producing the correct type, but a few simply have
to be cast. At least casting makes it explicit.
Diffstat (limited to 'src/sysupdate')
-rw-r--r-- | src/sysupdate/sysupdate-pattern.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sysupdate/sysupdate-pattern.c b/src/sysupdate/sysupdate-pattern.c index c9228687f7..6d9c8d8f8b 100644 --- a/src/sysupdate/sysupdate-pattern.c +++ b/src/sysupdate/sysupdate-pattern.c @@ -148,7 +148,10 @@ static int pattern_split( } if (!valid_char(*e)) - return log_debug_errno(SYNTHETIC_ERRNO(EBADRQC), "Invalid character 0x%0x in pattern, refusing.", *e); + return log_debug_errno( + SYNTHETIC_ERRNO(EBADRQC), + "Invalid character 0x%0x in pattern, refusing.", + (unsigned) *e); last_literal = true; |