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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user