From d5b425b1e33804d4067cd017ccb718e077fd5ba5 Mon Sep 17 00:00:00 2001 From: lti9hc <114125133+lti9hc@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:27:56 +0700 Subject: [PATCH] Fix return value of dlt_log_init function (#728) --- include/dlt/dlt_log.h | 2 +- src/shared/dlt_log.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dlt/dlt_log.h b/include/dlt/dlt_log.h index dcfdbd1ad..7e60a0948 100644 --- a/include/dlt/dlt_log.h +++ b/include/dlt/dlt_log.h @@ -71,7 +71,7 @@ void dlt_log_set_level(int level); * Initialize (external) logging facility * @param mode positive, 0 = log to stdout, 1 = log to syslog, 2 = log to file, 3 = log to stderr */ -void dlt_log_init(int mode); +DltReturnValue dlt_log_init(int mode); /** * Initialize (external) logging facility diff --git a/src/shared/dlt_log.c b/src/shared/dlt_log.c index 0564a4c54..cc8021275 100644 --- a/src/shared/dlt_log.c +++ b/src/shared/dlt_log.c @@ -77,9 +77,9 @@ void dlt_log_set_level(int level) } } -void dlt_log_init(int mode) +DltReturnValue dlt_log_init(int mode) { - dlt_log_init_multiple_logfiles_support((DltLoggingMode)mode, false, 0, 0); + return dlt_log_init_multiple_logfiles_support((DltLoggingMode)mode, false, 0, 0); }