shell: Add support for notifying about dropped logs

Extended shell log backend to print warning message on dropped
log messages.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2019-01-23 14:49:32 +01:00 committed by Carles Cufí
commit be4b2cd62d
2 changed files with 38 additions and 7 deletions

View file

@ -27,7 +27,7 @@ enum shell_log_backend_state {
/** @brief Shell log backend control block (RW data). */
struct shell_log_backend_control_block {
atomic_t cnt;
atomic_t dropped_cnt;
enum shell_log_backend_state state;
};