From b3244d2b0aac300a1563b8d16d71ab02fa50a042 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 20 Jun 2024 12:54:32 +0200 Subject: [PATCH] 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`. --- src/shared/conf-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3