zephyr/subsys/shell
Krzysztof Chruscinski 2a3a790a99 shell: log_backend: Fix fifo cleanup
When shell log backend was disabled fifo used only in
deferred mode was unconditionally flushed which lead to
errors in immediate mode where fifo was not present. On
the other hand, in case of LOG2_MODE_DEFERRED fifo (mpsc_pbuf)
was initialized in enable stage.

In order to clean things up, deferred v1 fifo flushing and
deferred v2 mpsc pbuf initialization were moved to fifo_reset
function which is called when shell log backend is enabled.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2021-05-13 14:04:08 +02:00
..
modules kernel: remove object tracing 2021-05-07 22:10:21 -04:00
CMakeLists.txt shell: add getopt library support 2021-03-01 09:50:32 -05:00
Kconfig shell: openthread: increase shell stack when used with OpenThread 2021-04-23 09:47:10 -04:00
Kconfig.backends shell: Fix typo in a comment 2020-09-15 09:44:42 -05:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_dummy.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shell_fprintf.c shell: internal api update: fprintf 2021-01-14 12:07:25 +01:00
shell_getopt.c shell: add getopt library support 2021-03-01 09:50:32 -05:00
shell_help.c coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
shell_help.h shell: make detecting help option optional 2021-03-01 09:50:32 -05:00
shell_history.c shell: internal api update: history module 2021-01-14 12:07:25 +01:00
shell_log_backend.c shell: log_backend: Fix fifo cleanup 2021-05-13 14:04:08 +02:00
shell_ops.c shell: add obscured input mode 2021-03-24 05:44:14 -04:00
shell_ops.h shell: make flag modification atomic 2021-03-24 05:44:14 -04:00
shell_rtt.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shell_telnet_protocol.h
shell_telnet.c net: telnet: Fix character mode handling 2021-04-19 17:12:23 +02:00
shell_uart.c shell: uart: Add TX disabling in uninitialization 2021-04-23 15:00:21 +02:00
shell_utils.c coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
shell_utils.h shell: shell_utils internal api update 2021-01-14 12:07:25 +01:00
shell_vt100.h
shell_wildcard.c coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
shell_wildcard.h shell: internal api update: wildcards 2021-01-14 12:07:25 +01:00
shell.c shell: Add callback to shell_uninit function 2021-03-25 07:08:40 -04:00