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:
parent
0562d9fac6
commit
c73578f37a
4 changed files with 165 additions and 9 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue