summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYusuke Sato <yusuke-sato@apn.alpine.co.jp>2018-05-08 15:43:27 +0900
committerChristoph Lipka <clipka@users.noreply.github.com>2018-05-08 08:43:27 +0200
commitd04759134b4a8d9941dc1b3157f75a4322bf70da (patch)
tree2bb56be7e72c8571637a221315cfb7b35fbdca21 /src
parent6502d0585703ce99f6d2576f47dc79665caebfb6 (diff)
downloadDLT-daemon-d04759134b4a8d9941dc1b3157f75a4322bf70da.tar.gz
dlt-daemon: Fix repeated output of marker message (#54)
Marker message had been continued to output if application called dlt_log_marker() due to missing byte removing processing against marker message. Therefore the byte removing for marker message processing is added. Signed-off-by: Yusuke Sato <yusuke-sato@apn.alpine.co.jp>
Diffstat (limited to 'src')
-rw-r--r--src/daemon/dlt-daemon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 313935d..064a008 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -3046,7 +3046,10 @@ int dlt_daemon_process_user_message_marker(DltDaemon *daemon,
}
memset(&userctxt, 0, len);
- if (dlt_receiver_check_and_get(rec, &userctxt, len, 1) < 0)
+ if (dlt_receiver_check_and_get(rec,
+ &userctxt,
+ len,
+ DLT_RCV_SKIP_HEADER | DLT_RCV_REMOVE) < 0)
{
/* Not enough bytes received */
return -1;