summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-08-02 09:37:51 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-08-07 14:26:56 +0200
commitd7f3cce7b39d567380a3cf8630a9312c3b5689a8 (patch)
tree3ee69cd6ea08551d37ec806c21efc65688dd21cb /src/shared
parent8b5631a9595c53b2384cd8f79e64f6f0d0f777f2 (diff)
downloadDLT-daemon-d7f3cce7b39d567380a3cf8630a9312c3b5689a8.tar.gz
Bug 44 - Don't print "Buffer full" message from DLT daemon for each trace.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/shared')
-rwxr-xr-xsrc/shared/dlt_common.c2
-rwxr-xr-xsrc/shared/dlt_user_shared.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 54a99c3..f0657e6 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -2635,7 +2635,7 @@ int dlt_buffer_push3(DltBuffer *buf,const unsigned char *data1,unsigned int size
// try to increase size if possible
if(dlt_buffer_increase_size(buf)) {
/* increase size is not possible */
- dlt_log(LOG_ERR,"Buffer: Buffer is full\n");
+ //dlt_log(LOG_ERR,"Buffer: Buffer is full\n");
return -1; // ERROR
}
// update pointers
diff --git a/src/shared/dlt_user_shared.h b/src/shared/dlt_user_shared.h
index 203763a..24941a7 100755
--- a/src/shared/dlt_user_shared.h
+++ b/src/shared/dlt_user_shared.h
@@ -182,6 +182,15 @@ typedef struct
int8_t log_state; /**< the state to be used for logging state: 0 = off, 1 = external client connected */
} PACKED DltUserControlMsgLogState;
+/**
+ * This is the internal message content to get the lnumber of lost messages reported to the daemon.
+ */
+typedef struct
+{
+ uint32_t overflow_counter; /**< counts the number of lost messages */
+ char apid[4]; /**< application which lost messages */
+} PACKED DltUserControlMsgBufferOverflow;
+
/**************************************************************************************************
* The folowing functions are used shared between the user lib and the daemon implementation
**************************************************************************************************/