summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.c
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-12-19 10:18:03 +0100
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-01-10 07:16:14 +0100
commit9b74a8457aaa9b282cf79427a713b907635d82a2 (patch)
treee09145e56abd101db80657f52ef79918ce0aa86d /src/daemon/dlt_daemon_common.c
parent8029c1387c240fcd085be13f38d9adadc97c03bf (diff)
downloadDLT-daemon-9b74a8457aaa9b282cf79427a713b907635d82a2.tar.gz
Cleanup of send return values. Further cleanup of send restructure.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/daemon/dlt_daemon_common.c')
-rw-r--r--src/daemon/dlt_daemon_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c
index fa6959c..be6fa26 100644
--- a/src/daemon/dlt_daemon_common.c
+++ b/src/daemon/dlt_daemon_common.c
@@ -139,7 +139,6 @@ int dlt_daemon_init(DltDaemon *daemon,const char *runtime_directory, int verbose
daemon->default_log_level = DLT_DAEMON_INITIAL_LOG_LEVEL ;
daemon->default_trace_status = DLT_DAEMON_INITIAL_TRACE_STATUS ;
- daemon->message_buffer_overflow = DLT_MESSAGE_BUFFER_NO_OVERFLOW;
daemon->overflow_counter = 0;
daemon->runtime_context_cfg_loaded = 0;
@@ -1197,8 +1196,6 @@ void dlt_daemon_control_reset_to_factory_default(DltDaemon *daemon,const char *f
daemon->default_log_level = DLT_DAEMON_INITIAL_LOG_LEVEL ;
daemon->default_trace_status = DLT_DAEMON_INITIAL_TRACE_STATUS ;
- daemon->message_buffer_overflow = DLT_MESSAGE_BUFFER_NO_OVERFLOW;
-
/* Reset all other things (log level, trace status, etc.
to default values */
@@ -1280,6 +1277,10 @@ void dlt_daemon_change_state(DltDaemon *daemon, DltDaemonState newState)
dlt_log(LOG_INFO,"Switched to buffer state.\n");
daemon->state = DLT_DAEMON_STATE_BUFFER;
break;
+ case DLT_DAEMON_STATE_BUFFER_FULL:
+ dlt_log(LOG_INFO,"Switched to buffer full state.\n");
+ daemon->state = DLT_DAEMON_STATE_BUFFER_FULL;
+ break;
case DLT_DAEMON_STATE_SEND_BUFFER:
dlt_log(LOG_INFO,"Switched to send buffer state.\n");
daemon->state = DLT_DAEMON_STATE_SEND_BUFFER;