shell: shell_log_backend: take buffer size from config
Use LOG_MESSAGE_QUEUE_SIZE config instead of hardcoded value. LOG_MESSAGE_QUEUE_SIZE default value has been changed to 512, so it is now matching to the hardcoded value. Signed-off-by: Wojciech Slenska <wsl@trackunit.com>
This commit is contained in:
parent
a9bfe0a423
commit
188d2dfcca
3 changed files with 6 additions and 5 deletions
|
@ -4,8 +4,8 @@ config $(module)_LOG_MESSAGE_QUEUE_SIZE
|
|||
int "Log message queue size"
|
||||
default $(default-size)
|
||||
help
|
||||
Amount of messages that can enqueued in order to be processed by shell
|
||||
thread. Too small queue may lead to logger thread being blocked
|
||||
Size of buffer for messages that can be enqueued in order to be processed
|
||||
by shell thread. Too small queue may lead to the logger thread being blocked
|
||||
(see $(module)_LOG_MESSAGE_QUEUE_TIMEOUT). Too big queue on relatively
|
||||
slow shell transport may lead to situation where logs are dropped
|
||||
slow shell transport may lead to situations where logs are dropped
|
||||
because all log messages are enqueued.
|
||||
|
|
|
@ -82,7 +82,7 @@ module = SHELL_BACKEND_SERIAL
|
|||
default-timeout = 100
|
||||
source "subsys/shell/Kconfig.template.shell_log_queue_timeout"
|
||||
|
||||
default-size = 10
|
||||
default-size = 512
|
||||
source "subsys/shell/Kconfig.template.shell_log_queue_size"
|
||||
|
||||
choice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue