diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-15 22:25:58 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-17 00:09:16 -0400 |
commit | e8e581bf256b8c0fbd430935af79fa0e8ee570a1 (patch) | |
tree | b203161b3797ff9df6444c0696e402448ffbda69 /src/bootchart/bootchart.c | |
parent | c1b6628d64e5340d905d974bb95d673a4aae60c1 (diff) |
Report about syntax errors with metadata
The information about the unit for which files are being parsed
is passed all the way down. This way messages land in the journal
with proper UNIT=... or USER_UNIT=... attribution.
'systemctl status' and 'journalctl -u' not displaying those messages
has been a source of confusion for users, since the journal entry for
a misspelt setting was often logged quite a bit earlier than the
failure to start a unit.
Based-on-a-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
Diffstat (limited to 'src/bootchart/bootchart.c')
-rw-r--r-- | src/bootchart/bootchart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c index d6c63cd129..3350ea1d89 100644 --- a/src/bootchart/bootchart.c +++ b/src/bootchart/bootchart.c @@ -123,7 +123,7 @@ static void parse_conf(void) { if (!f) return; - r = config_parse(BOOTCHART_CONF, f, + r = config_parse(NULL, BOOTCHART_CONF, f, NULL, config_item_table_lookup, (void*) items, true, NULL); if (r < 0) log_warning("Failed to parse configuration file: %s", strerror(-r)); |