summaryrefslogtreecommitdiff
path: root/src/console/dlt-receive.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-receive.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-receive.c')
-rw-r--r--src/console/dlt-receive.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/console/dlt-receive.c b/src/console/dlt-receive.c
index fd19f83..200add1 100644
--- a/src/console/dlt-receive.c
+++ b/src/console/dlt-receive.c
@@ -556,7 +556,7 @@ int main(int argc, char* argv[])
int dlt_receive_message_callback(DltMessage *message, void *data)
{
DltReceiveData *dltdata;
- static char text[DLT_RECEIVE_TEXTBUFSIZE];
+ static char text[DLT_RECEIVE_BUFSIZE];
struct iovec iov[2];
int bytes_written;
@@ -584,27 +584,27 @@ int dlt_receive_message_callback(DltMessage *message, void *data)
/* if no filter set or filter is matching display message */
if (dltdata->xflag)
{
- dlt_message_print_hex(message,text,DLT_RECEIVE_TEXTBUFSIZE,dltdata->vflag);
+ dlt_message_print_hex(message,text,DLT_RECEIVE_BUFSIZE,dltdata->vflag);
}
else if (dltdata->aflag)
{
- dlt_message_header(message,text,DLT_RECEIVE_TEXTBUFSIZE,dltdata->vflag);
+ dlt_message_header(message,text,DLT_RECEIVE_BUFSIZE,dltdata->vflag);
printf("%s ",text);
- dlt_message_payload(message,text,DLT_RECEIVE_TEXTBUFSIZE,DLT_OUTPUT_ASCII,dltdata->vflag);
+ dlt_message_payload(message,text,DLT_RECEIVE_BUFSIZE,DLT_OUTPUT_ASCII,dltdata->vflag);
printf("[%s]\n",text);
}
else if (dltdata->mflag)
{
- dlt_message_print_mixed_plain(message,text,DLT_RECEIVE_TEXTBUFSIZE,dltdata->vflag);
+ dlt_message_print_mixed_plain(message,text,DLT_RECEIVE_BUFSIZE,dltdata->vflag);
}
else if (dltdata->sflag)
{
- dlt_message_header(message,text,DLT_RECEIVE_TEXTBUFSIZE,dltdata->vflag);
+ dlt_message_header(message,text,DLT_RECEIVE_BUFSIZE,dltdata->vflag);
printf("%s \n",text);
}