Skip to content

Commit

Permalink
dlt_common: change output of message for log initialization (#412)
Browse files Browse the repository at this point in the history
Switch dlt_vlog() to dlt_user_printf(), the message could be
observed in case the log can not be written in file

Signed-off-by: Le Tin <[email protected]>
  • Loading branch information
lti9hc authored Oct 6, 2022
1 parent 5b80a4c commit e961a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/dlt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ void dlt_print_with_attributes(bool state)
DltReturnValue dlt_log_init(int mode)
{
if ((mode < DLT_LOG_TO_CONSOLE) || (mode > DLT_LOG_DROPPED)) {
dlt_vlog(LOG_WARNING, "Wrong parameter for mode: %d\n", mode);
dlt_user_printf("Wrong parameter for mode: %d\n", mode);
return DLT_RETURN_WRONG_PARAMETER;
}

Expand Down

0 comments on commit e961a8f

Please sign in to comment.