From e961a8f7c0f655a4379c8c6bcf745f89604c453f Mon Sep 17 00:00:00 2001 From: lti9hc <114125133+lti9hc@users.noreply.github.com> Date: Thu, 6 Oct 2022 15:57:14 +0700 Subject: dlt_common: change output of message for log initialization (#412) 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 --- src/shared/dlt_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c index 57455fa..2ab6ed9 100644 --- a/src/shared/dlt_common.c +++ b/src/shared/dlt_common.c @@ -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; } -- cgit v1.2.1