Skip to content

Commit

Permalink
Fix return value of dlt_log_init function
Browse files Browse the repository at this point in the history
dlt_log_init function should return with value

Signed-off-by: Le Tin <[email protected]>
  • Loading branch information
Le-Tin committed Nov 25, 2024
1 parent cfe2cc4 commit 8e79a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/dlt/dlt_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/shared/dlt_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ 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);
}
Expand Down

0 comments on commit 8e79a3d

Please sign in to comment.