From 13a16a2bb3170c5ee4427b6a437ab01ac8c0201f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 5 Mar 2019 18:11:35 +0100 Subject: [PATCH] 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 --- src/shared/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/json.c b/src/shared/json.c index f46ea682042..2a858d4cc4f 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -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( -- 2.47.3