json: log about the right line number

We mean the line number in the json data, not the line number in our
C source code.

Addresses: https://github.com/systemd/systemd/pull/9762#issuecomment-441183987
This commit is contained in:
Lennart Poettering 2019-03-05 18:11:35 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3170dfe42d
commit 13a16a2bb3
1 changed files with 1 additions and 1 deletions

View File

@ -3164,7 +3164,7 @@ int json_log_internal(
"CONFIG_FILE=%s", source,
"CONFIG_LINE=%u", source_line,
"CONFIG_COLUMN=%u", source_column,
LOG_MESSAGE("%s:%u: %s", source, line, buffer),
LOG_MESSAGE("%s:%u:%u: %s", source, source_line, source_column, buffer),
NULL);
else
return log_struct_internal(