From: Antonio Alvarez Feijoo Date: Thu, 20 Jun 2024 10:54:32 +0000 (+0200) Subject: conf-parser: print why config_parse_iec_uint64() fails X-Git-Tag: v257-rc1~1086^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F33426%2Fhead;p=thirdparty%2Fsystemd.git 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`. --- diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 7bac3ead83d..67c6aa792e3 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -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; }