logger: Add init() api and simplify init and activate

Simplify logger initialization process using already existing loops.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2018-09-14 15:31:26 +03:00 committed by Carles Cufí
commit 6162caf787
3 changed files with 10 additions and 11 deletions

View file

@ -30,6 +30,7 @@ struct log_backend_api {
struct log_msg *msg);
void (*panic)(const struct log_backend *const backend);
void (*init)(void);
};
/**