c7d6c310c6
With CONFIG_LOG_IMMEDIATE, log output is printed immediately. If a shell command is in progress, there's no prompt to erase, nor should we print a new prompt after the log message is output. Before this patch, a simple shell command like: int cmd_log_erase(const struct shell *shell, size_t argc, char **argv) { LOG_INF("hello world"); return 0; } would output something like: uart:~$ log erase [00:00:02.623,718] <inf> cmd_log: hello world uart:~$ loguart:~$ This patch fixes prompt handling while a command is active, and fixes put_sync_hexdump to behave like put_sync_string. Signed-off-by: Jim Paris <jim@jtan.com> |
||
---|---|---|
.. | ||
modules | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.backends | ||
Kconfig.template.shell_log_queue_size | ||
Kconfig.template.shell_log_queue_timeout | ||
shell.c | ||
shell_cmds.c | ||
shell_dummy.c | ||
shell_fprintf.c | ||
shell_help.c | ||
shell_help.h | ||
shell_history.c | ||
shell_log_backend.c | ||
shell_ops.c | ||
shell_ops.h | ||
shell_rtt.c | ||
shell_telnet.c | ||
shell_telnet_protocol.h | ||
shell_uart.c | ||
shell_utils.c | ||
shell_utils.h | ||
shell_vt100.h | ||
shell_wildcard.c | ||
shell_wildcard.h |