logging: Reset buffered message counter on init
Add reset of buffered messages counter to the initialization function. It is for testing purposes sinces in the application logging is initialized only once. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
562069d4ed
commit
63eba62876
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ void log_core_init(void)
|
|||
{
|
||||
panic_mode = false;
|
||||
dropped_cnt = 0;
|
||||
buffered_cnt = 0;
|
||||
|
||||
if (IS_ENABLED(CONFIG_LOG_FRONTEND)) {
|
||||
log_frontend_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue