dlt-daemon: fix missing application description

Running "dlt-example-user 'test'",
Check "dlt-control -j localhost", will not get application description:
APID:LOG-

Expected:
APID:LOG- Test Application for Logging

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Changqing Li
2026-04-16 16:38:23 +08:00
committed by Khem Raj
parent 2b16c16389
commit 2df018ea4b
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,37 @@
From 7e94c281563ff0eb67e521cf0a6fc3049f732214 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com>
Date: Wed, 15 Apr 2026 16:52:19 +0800
Subject: [PATCH] dlt-daemon.c: fix wrong len
Set len to 0 makes the application description always empty.
One of the failure case:
Running "dlt-example-user 'test'",
Check "dlt-control -j localhost", will not get application description:
APID:LOG-
Expected:
APID:LOG- Test Application for Logging
Upstream-Status: Backport [https://github.com/COVESA/dlt-daemon/pull/852]
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
src/daemon/dlt-daemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 8c318a4..38fe824 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -4110,7 +4110,7 @@ int dlt_daemon_process_user_message_register_application(DltDaemon *daemon,
to_remove = (uint32_t) temp;
}
- len = 0;
+ len = userapp.description_length;
if (len > DLT_DAEMON_DESCSIZE) {
len = DLT_DAEMON_DESCSIZE;
--
2.34.1
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
file://0001-Fix-build-failure-with-glibc-2.43.patch \
file://0001-CMakeLists.txt-make-CONFIGURATION_FILES_DIR-aligned.patch \
file://0001-warnings-Fix-clang-generated-warnings.patch \
file://0001-dlt-daemon.c-fix-wrong-len.patch \
"
SRCREV = "f595ea29d1007ca1c3b2d1fd3a88adf7d3db6320"