summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlti9hc <114125133+lti9hc@users.noreply.github.com>2022-10-06 15:57:14 +0700
committerGitHub <noreply@github.com>2022-10-06 10:57:14 +0200
commite961a8f7c0f655a4379c8c6bcf745f89604c453f (patch)
tree8dae1302f65f6cbb4850eb99f203af18c0ead18b
parent5b80a4c92c9aa9ef45ce1da599b401ba631a86ed (diff)
downloadDLT-daemon-e961a8f7c0f655a4379c8c6bcf745f89604c453f.tar.gz
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 <tin.le@vn.bosch.com>
-rw-r--r--src/shared/dlt_common.c2
1 files changed, 1 insertions, 1 deletions
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;
}