summaryrefslogtreecommitdiff
path: root/src/console/dlt-control-common.c
diff options
context:
space:
mode:
authorManikandan C <mchockalingam@de.adit-jv.com>2018-11-12 14:01:47 +0100
committerChristoph Lipka <clipka@users.noreply.github.com>2018-11-23 11:10:47 +0100
commit13803189600c724341148af34f33688497d71991 (patch)
tree2967d4bf0cf3b95a542fc40e29cd7e67a341fc03 /src/console/dlt-control-common.c
parent775949cfaf16f1a07cf549a00a3e8e0cc99e1d6c (diff)
downloadDLT-daemon-13803189600c724341148af34f33688497d71991.tar.gz
dlt-client: logging: Extended the receiver buffer size
- dlt-control couldn't receive all the GET_LOG_INFO response message when many applications and contexts are registered. Therefore the receiver buffer size was extended to 65K. Also the receive buffer size macros are reduced to one variable. - Code cleanup and improvements Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/console/dlt-control-common.c')
-rw-r--r--src/console/dlt-control-common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/console/dlt-control-common.c b/src/console/dlt-control-common.c
index 127eb4b..37c5a62 100644
--- a/src/console/dlt-control-common.c
+++ b/src/console/dlt-control-common.c
@@ -160,10 +160,10 @@ void set_timeout(long t)
int dlt_parse_config_param(char *config_id, char **config_data)
{
FILE * pFile = NULL;
- int value_length = DLT_RECEIVE_TEXTBUFSIZE;
- char line[DLT_RECEIVE_TEXTBUFSIZE-1] = {0};
- char token[DLT_RECEIVE_TEXTBUFSIZE] = {0};
- char value[DLT_RECEIVE_TEXTBUFSIZE] = {0};
+ int value_length = DLT_LINE_LEN;
+ char line[DLT_LINE_LEN-1] = {0};
+ char token[DLT_LINE_LEN] = {0};
+ char value[DLT_LINE_LEN] = {0};
char *pch = NULL;
const char *filename = NULL;
@@ -524,7 +524,7 @@ static void *dlt_control_listen_to_daemon(void *data)
*/
static int dlt_control_callback(DltMessage *message, void *data)
{
- char text[DLT_RECEIVE_TEXTBUFSIZE] = { 0 };
+ char text[DLT_RECEIVE_BUFSIZE] = { 0 };
(void) data;
if (message == NULL)
@@ -543,11 +543,11 @@ static int dlt_control_callback(DltMessage *message, void *data)
dlt_set_storageheader(message->storageheader, "LCTL");
}
- dlt_message_header(message, text, DLT_RECEIVE_TEXTBUFSIZE, get_verbosity());
+ dlt_message_header(message, text, DLT_RECEIVE_BUFSIZE, get_verbosity());
/* Extracting payload */
dlt_message_payload(message, text,
- DLT_RECEIVE_TEXTBUFSIZE,
+ DLT_RECEIVE_BUFSIZE,
DLT_OUTPUT_ASCII,
get_verbosity());