logging: Add resetting of dropped_cnt to init

It is mainly for testing purposes where logging is multiple times
reinitialized.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2021-08-03 11:12:53 +02:00 committed by Maureen Helm
commit 12f366c954

View file

@ -541,6 +541,7 @@ void log_core_init(void)
uint32_t freq;
panic_mode = false;
dropped_cnt = 0;
/* Set default timestamp. */
if (sys_clock_hw_cycles_per_sec() > 1000000) {