summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
authorLutz Helwing <lutz_helwing@mentor.com>2017-08-22 14:12:17 +0200
committerChristoph Lipka <clipka@users.noreply.github.com>2017-08-22 14:12:17 +0200
commitcf30c443064d28bfcdaa0f4c7bf799fd5d6fed99 (patch)
treef421f0b5aa7e1c022c8b73bd879e57e92e4c09d8 /src/daemon/dlt-daemon.c
parent1b8c74ace00fb0a0e38fae5fd2c3cb0bc7b89ccc (diff)
downloadDLT-daemon-cf30c443064d28bfcdaa0f4c7bf799fd5d6fed99.tar.gz
Data stuck in receiver buffer when dlt_daemon_user_send_log_level() fails (#21)
- When dlt_daemon_user_send_log_level() called in dlt_daemon_process_user_message_register_context() fails -1 was returned which caused dlt_daemon_process_user_messages() to stop processing receiver buffer. Remaining data was stuck until new data arrived over FIFO. - Make debug output of dlt_daemon_user_send_log_level() more verbose. Signed-off-by: Lutz Helwing <lutz_helwing@mentor.com>
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 9288d33..313935d 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -2423,14 +2423,10 @@ int dlt_daemon_process_user_message_register_context(DltDaemon *daemon,
/* This call also replaces the default values with the values defined for default */
if (dlt_daemon_user_send_log_level(daemon, context, verbose)==-1)
{
- snprintf(local_str,
- DLT_DAEMON_TEXTBUFSIZE,
- "Can't send current log level as response to %s for (%.4s;%.4s)\n",
+ dlt_vlog(LOG_WARNING, "Can't send current log level as response to %s for (%.4s;%.4s)\n",
__func__,
context->apid,
context->ctid);
- dlt_log(LOG_WARNING, local_str);
- return -1;
}
}