From 8112bb0c3a1b16a9f7e47e725d95f9fbab1bf4c2 Mon Sep 17 00:00:00 2001 From: Manikandan C Date: Mon, 12 Nov 2018 14:01:47 +0100 Subject: 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 --- src/console/dlt-control-common.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/console/dlt-control-common.c') 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()); -- cgit v1.2.1