From 05dec28345ebed16a4a39fea85848c0b8b907c05 Mon Sep 17 00:00:00 2001 From: dhnatiuk1 <93189562+dhnatiuk1@users.noreply.github.com> Date: Wed, 3 Nov 2021 02:19:48 +0200 Subject: Forcibly the severity level set (#346) Some QNX components when bringing up send messages of severity type "FATAL" instead of "INFO" via slogger2. QNX component send messages of payload data_type = SLOG2_TYPE_ONLINE. The buffer is new and just came online. dlt-qnx-slogger2 does not support info->data_type = SLOG2_TYPE_ONLINE and therefore sets the wrong log level. This commit forcibly change the severity level for all info->data_type = SLOG2_TYPE_ONLINE to SLOG2_INFO. Signed-off-by: Dinidrol --- src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp b/src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp index 5ebfc0c..2bfd7c9 100644 --- a/src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp +++ b/src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp @@ -137,6 +137,9 @@ static int sloggerinfo_callback(slog2_packet_info_t *info, void *payload, void * if (param == NULL) return -1; + if (info->data_type == SLOG2_TYPE_ONLINE) + info->severity = SLOG2_INFO; + DltLogLevelType loglevel; switch (info->severity) { -- cgit v1.2.1