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:
parent
3170dfe42d
commit
13a16a2bb3
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue