mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
conf-parser: print why config_parse_iec_uint64() fails
Print the same output as `config_parse_iec_size()` and `config_parse_si_uint64()` if `parse_size()` fails, not only the `rvalue`.
This commit is contained in:
parent
152f349385
commit
b3244d2b0a
@ -946,7 +946,7 @@ int config_parse_iec_uint64(
|
||||
|
||||
r = parse_size(rvalue, 1024, bytes);
|
||||
if (r < 0)
|
||||
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse size value, ignoring: %s", rvalue);
|
||||
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse size value '%s', ignoring: %m", rvalue);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user