Skip to content

Commit 5fec654

Browse files
committed
add some logs
1 parent 29410e6 commit 5fec654

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jni/dlt_client.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,13 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
339339

340340
if (client==0)
341341
{
342+
LOGE("client invalid.");
342343
return DLT_RETURN_ERROR;
343344
}
344345

345346
if (dlt_message_init(&msg,verbose) == DLT_RETURN_ERROR)
346347
{
348+
LOGE("dlt message init failed.");
347349
return DLT_RETURN_ERROR;
348350
}
349351

@@ -365,9 +367,11 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
365367
/* No more data to be received */
366368
if (dlt_message_free(&msg,verbose) == DLT_RETURN_ERROR)
367369
{
370+
LOGE("dlt message free failed.");
368371
return DLT_RETURN_ERROR;
369372
}
370373

374+
LOGI("No more data to be received.");
371375
return DLT_RETURN_TRUE;
372376
}
373377

@@ -385,6 +389,7 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
385389
{
386390
/* Return value ignored */
387391
dlt_message_free(&msg,verbose);
392+
LOGE("Return value ignored 1.");
388393
return DLT_RETURN_ERROR;
389394
}
390395
}
@@ -394,6 +399,7 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
394399
{
395400
/* Return value ignored */
396401
dlt_message_free(&msg,verbose);
402+
LOGE("Return value ignored 2.");
397403
return DLT_RETURN_ERROR;
398404
}
399405
}
@@ -403,6 +409,7 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
403409
{
404410
/* Return value ignored */
405411
dlt_message_free(&msg,verbose);
412+
LOGE("Return value ignored 3.");
406413
return DLT_RETURN_ERROR;
407414
}
408415
}
@@ -412,6 +419,7 @@ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose)
412419
return DLT_RETURN_ERROR;
413420
}
414421

422+
LOGI("dlt_client_main_loop() OUT");
415423
return DLT_RETURN_OK;
416424
}
417425

0 commit comments

Comments
 (0)