From: Ronny Chevalier Date: Sat, 30 May 2015 10:21:26 +0000 (+0200) Subject: conf-parser: parsing error logs should show a type not a vartype X-Git-Tag: v226.4~1^2~336 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=5359a35808adfc37bd7fba849daee45da6a60a71 conf-parser: parsing error logs should show a type not a vartype Instead of this: [filename:1] Failed to parse nsec_t value, ignoring: garbage we show this: [filename:1] Failed to parse nsec value, ignoring: garbage --- diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 2c855157a..7370c786f 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -444,7 +444,7 @@ int config_parse_many(const char *conf_file, if (r < 0) \ log_syntax(unit, LOG_ERR, filename, line, -r, \ "Failed to parse %s value, ignoring: %s", \ - #vartype, rvalue); \ + #type, rvalue); \ \ return 0; \ }