summaryrefslogtreecommitdiff
path: root/src/console/dlt-receive.c
diff options
context:
space:
mode:
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);
}