diff options
author | Mohammed AL Dardoun <mohammed.aldardoun@partner.bmw.de> | 2011-08-09 17:04:17 +0200 |
---|---|---|
committer | Mohammed AL Dardoun <mohammed.aldardoun@partner.bmw.de> | 2011-08-09 17:04:17 +0200 |
commit | 7554585a80ca2a8ebdcd5d1f1693ffe8e39b571d (patch) | |
tree | 5e479e49045e847c4ffe08d09a553763173bd836 /src/lib/dlt_user.c | |
parent | 11702b620d2ec8896af210168db81ee58923d9da (diff) | |
download | DLT-daemon-7554585a80ca2a8ebdcd5d1f1693ffe8e39b571d.tar.gz |
[GSW-43] Flow Control for sending huge amount of data over DLT. partialy fixed
Diffstat (limited to 'src/lib/dlt_user.c')
-rwxr-xr-x | src/lib/dlt_user.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 26aa3e0..e1225bb 100755 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -284,7 +284,7 @@ int dlt_init_common(void) dlt_user.dlt_ll_ts_max_num_entries = 0; dlt_user.dlt_ll_ts_num_entries = 0; - if (dlt_ringbuffer_init(&(dlt_user.rbuf), DLT_USER_RINGBUFFER_SIZE)==-1) + if (dlt_ringbuffer_init(&(dlt_user.rbuf), DLT_USER_RINGBUFFER_SIZE,DLT_USER_RINGBUFFER_INCREASE_SIZE,DLT_USER_RINGBUFFER_MAXIMUM_SIZE)==-1) { dlt_user_initialised = 0; return -1; @@ -2149,6 +2149,10 @@ int dlt_user_log_send_log(DltContextData *log, int mtype) { dlt_log(LOG_ERR,"Storing message to history buffer failed! Message discarded.\n"); } + else + { + ret = DLT_RETURN_OK; + } DLT_SEM_FREE(); } @@ -2158,6 +2162,7 @@ int dlt_user_log_send_log(DltContextData *log, int mtype) case DLT_RETURN_PIPE_FULL: { /* data could not be written */ + //printf("dlt_user overflow\n"); dlt_user.overflow = 1; return -1; } |