chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
conf-parser: print message about invalid sections
[elogind.git]
/
conf-parser.c
diff --git
a/conf-parser.c
b/conf-parser.c
index 6f5361f9c81efc5770140a7725ba0a1e2589d335..2cf90f2defa1ff8dec0ae4d5c7aad47d433baecd 100644
(file)
--- a/
conf-parser.c
+++ b/
conf-parser.c
@@
-111,6
+111,7
@@
static int parse_line(const char *filename, unsigned line, char **section, const
return -ENOMEM;
if (sections && !strv_contains((char**) sections, n)) {
+ log_error("[%s:%u] Unknown section '%s'.", filename, line, n);
free(n);
return -EBADMSG;
}