logging: log_output: Minor code cleanup
Z_LOG_EVAL was used in place where COND_CODE_1 was a much better fit. Z_LOG_EVAL gave the same result but it was not intended to be used here. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
a52e92a148
commit
6b7c8ae1b3
1 changed files with 2 additions and 2 deletions
|
@ -23,10 +23,10 @@
|
||||||
#define HEXDUMP_BYTES_IN_LINE 16
|
#define HEXDUMP_BYTES_IN_LINE 16
|
||||||
|
|
||||||
#define DROPPED_COLOR_PREFIX \
|
#define DROPPED_COLOR_PREFIX \
|
||||||
Z_LOG_EVAL(CONFIG_LOG_BACKEND_SHOW_COLOR, (LOG_COLOR_CODE_RED), ())
|
COND_CODE_1(CONFIG_LOG_BACKEND_SHOW_COLOR, (LOG_COLOR_CODE_RED), ())
|
||||||
|
|
||||||
#define DROPPED_COLOR_POSTFIX \
|
#define DROPPED_COLOR_POSTFIX \
|
||||||
Z_LOG_EVAL(CONFIG_LOG_BACKEND_SHOW_COLOR, (LOG_COLOR_CODE_DEFAULT), ())
|
COND_CODE_1(CONFIG_LOG_BACKEND_SHOW_COLOR, (LOG_COLOR_CODE_DEFAULT), ())
|
||||||
|
|
||||||
static const char *const severity[] = {
|
static const char *const severity[] = {
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue