From 63eba6287666020e35d373aba09d0b55dfc682da Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Wed, 12 Oct 2022 09:11:17 +0200 Subject: [PATCH] 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 --- subsys/logging/log_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/logging/log_core.c b/subsys/logging/log_core.c index 8e009808201..8b5bb2a4330 100644 --- a/subsys/logging/log_core.c +++ b/subsys/logging/log_core.c @@ -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();