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:
Antonio Alvarez Feijoo 2024-06-20 12:54:32 +02:00
parent 152f349385
commit b3244d2b0a
No known key found for this signature in database
GPG key ID: B4EFC9173666A622

View file

@ -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;
}