Skip to content

Commit d5b425b

Browse files
authored
Fix return value of dlt_log_init function (#728)
1 parent 7f7cd72 commit d5b425b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/dlt/dlt_log.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void dlt_log_set_level(int level);
7171
* Initialize (external) logging facility
7272
* @param mode positive, 0 = log to stdout, 1 = log to syslog, 2 = log to file, 3 = log to stderr
7373
*/
74-
void dlt_log_init(int mode);
74+
DltReturnValue dlt_log_init(int mode);
7575

7676
/**
7777
* Initialize (external) logging facility

src/shared/dlt_log.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ void dlt_log_set_level(int level)
7777
}
7878
}
7979

80-
void dlt_log_init(int mode)
80+
DltReturnValue dlt_log_init(int mode)
8181
{
82-
dlt_log_init_multiple_logfiles_support((DltLoggingMode)mode, false, 0, 0);
82+
return dlt_log_init_multiple_logfiles_support((DltLoggingMode)mode, false, 0, 0);
8383
}
8484

8585

0 commit comments

Comments
 (0)