diff mbox series

console: change default colours for TRACE

Message ID 20201110164903.137290-1-sbabic@denx.de
State Accepted
Headers show
Series console: change default colours for TRACE | expand

Commit Message

Stefano Babic Nov. 10, 2020, 4:49 p.m. UTC
Do not set colours as default for TRACE / DEBUG as they can be not
readable on many console. Let the user the choice to decide this by
setting the colours in configuration file.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 core/notifier.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/core/notifier.c b/core/notifier.c
index e4ca3c6..c3a7376 100644
--- a/core/notifier.c
+++ b/core/notifier.c
@@ -140,8 +140,8 @@  struct logcolor consolecolors[] = {
 	[ERRORLEVEL] = {BRIGHT, RED, COLOR_NONE},
 	[WARNLEVEL] = {BRIGHT, YELLOW, COLOR_NONE},
 	[INFOLEVEL] = {BRIGHT, GREEN, COLOR_NONE},
-	[DEBUGLEVEL] = {BRIGHT, BLACK, COLOR_NONE},
-	[TRACELEVEL] = {BRIGHT, BLACK, COLOR_NONE}
+	[DEBUGLEVEL] = {RESET, COLOR_NONE, COLOR_NONE},
+	[TRACELEVEL] = {RESET, COLOR_NONE, COLOR_NONE}
 };
 
 static void set_console_color(int level, char *buf, size_t size) {