diff options
author | Yusuke Sato <yusuke-sato@apn.alpine.co.jp> | 2018-05-08 15:43:27 +0900 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-05-08 08:43:27 +0200 |
commit | d04759134b4a8d9941dc1b3157f75a4322bf70da (patch) | |
tree | 2bb56be7e72c8571637a221315cfb7b35fbdca21 | |
parent | 6502d0585703ce99f6d2576f47dc79665caebfb6 (diff) | |
download | DLT-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>
-rw-r--r-- | src/daemon/dlt-daemon.c | 5 |
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; |