From 9bae63b941cfa1852a06eb0a279ee0a62bef2f65 Mon Sep 17 00:00:00 2001 From: Geoffroy Van Cutsem Date: Thu, 28 Oct 2021 12:57:37 +0200 Subject: [PATCH] config_tools: improve logging readability for the board inspector Improve the logging readibility for the Board Inspector tool by adding a space after "Error:" and "Warning:" instead of have the text directly attached to it. Tracked-On: #6736 Signed-off-by: Geoffroy Van Cutsem --- misc/config_tools/board_inspector/legacy/parser_lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/config_tools/board_inspector/legacy/parser_lib.py b/misc/config_tools/board_inspector/legacy/parser_lib.py index 41ff67d2b..b0b537cc5 100644 --- a/misc/config_tools/board_inspector/legacy/parser_lib.py +++ b/misc/config_tools/board_inspector/legacy/parser_lib.py @@ -24,9 +24,9 @@ def print_yel(msg, warn=False, end=True): """ if warn: if end: - print("\033[1;33mWarning\033[0m:"+msg) + print("\033[1;33mWarning\033[0m: "+msg) else: - print("\033[1;33mWarning\033[0m:"+msg, end="") + print("\033[1;33mWarning\033[0m: "+msg, end="") else: if end: print("\033[1;33m{}\033[0m".format(msg)) @@ -40,7 +40,7 @@ def print_red(msg, err=False): :param err: the condition if needs to be output the color of red with 'Error' """ if err: - print("\033[1;31mError\033[0m:"+msg) + print("\033[1;31mError\033[0m: "+msg) else: print("\033[1;31m{0}\033[0m".format(msg))