chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52306a9
)
conf-parser: parsing error logs should show a type not a vartype
author
Ronny Chevalier
<chevalier.ronny@gmail.com>
Sat, 30 May 2015 10:21:26 +0000
(12:21 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:01:16 +0000
(10:01 +0100)
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
src/shared/conf-parser.c
patch
|
blob
|
history
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index 2c855157a9a9c83e07a1427d6cd179b6a878f6d6..7370c786f9a644510924e34cc38025455959034e 100644
(file)
--- 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; \
}