shell: shell_log_backend: Allow printing the thread ID or name
Add the LOG_OUTPUT_FLAG_THREAD to the default flags for the shell log backend. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
01852b555e
commit
e7e6cb9def
1 changed files with 5 additions and 4 deletions
|
|
@ -161,10 +161,11 @@ static void process_log_msg(const struct shell *sh,
|
|||
bool locked, bool colors)
|
||||
{
|
||||
unsigned int key = 0;
|
||||
uint32_t flags = LOG_OUTPUT_FLAG_LEVEL |
|
||||
LOG_OUTPUT_FLAG_TIMESTAMP |
|
||||
(IS_ENABLED(CONFIG_SHELL_LOG_FORMAT_TIMESTAMP) ?
|
||||
LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP : 0);
|
||||
uint32_t flags = LOG_OUTPUT_FLAG_LEVEL | LOG_OUTPUT_FLAG_TIMESTAMP | LOG_OUTPUT_FLAG_THREAD;
|
||||
|
||||
if (IS_ENABLED(CONFIG_SHELL_LOG_FORMAT_TIMESTAMP)) {
|
||||
flags |= LOG_OUTPUT_FLAG_FORMAT_TIMESTAMP;
|
||||
}
|
||||
|
||||
if (colors) {
|
||||
flags |= LOG_OUTPUT_FLAG_COLORS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue