logging: enhanced external logsystems

Introduced interface for efficient logging from external logsystems:
Added handling of vaargs and automatic strdup to macros intended
to be used in logging interface function. Fast path to less then 4
arguments to speed up the execution. Made log_count_args external,
if external logsystem cannot count arguments.

Signed-off-by: Tomasz Konieczny <tomasz.konieczny@nordicsemi.no>
This commit is contained in:
Tomasz Konieczny 2020-03-27 08:24:53 +01:00 committed by Carles Cufí
commit c73578f37a
4 changed files with 165 additions and 9 deletions

View file

@ -61,7 +61,8 @@ void log_hexdump_sync(struct log_msg_ids src_level, const char *metadata,
{
}
void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap)
void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap,
enum log_strdup_action strdup_action)
{
}