diff mbox series

[V2] Fix DEBUG log color application

Message ID 20201113103000.34281-1-christian.storm@siemens.com
State Accepted
Headers show
Series [V2] Fix DEBUG log color application | expand

Commit Message

Storm, Christian Nov. 13, 2020, 10:30 a.m. UTC
Commit 656e507 reordered log levels resulting in
the DEBUG logcolor not being applied.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 core/swupdate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Nov. 13, 2020, 10:38 a.m. UTC | #1
On 13.11.20 11:30, Christian Storm wrote:
> Commit 656e507 reordered log levels resulting in
> the DEBUG logcolor not being applied.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  core/swupdate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/core/swupdate.c b/core/swupdate.c
> index 5e5fbaf..58e662d 100644
> --- a/core/swupdate.c
> +++ b/core/swupdate.c
> @@ -564,7 +564,7 @@ static int read_console_settings(void *elem, void __attribute__ ((__unused__)) *
>  	char tmp[SWUPDATE_GENERAL_STRING_SIZE] = "";
>  	int i;
>  
> -	for (i = ERRORLEVEL; i <= TRACELEVEL; i++) {
> +	for (i = ERRORLEVEL; i <= LASTLOGLEVEL; i++) {
>  		memset(tmp, 0, sizeof(tmp));
>  		GET_FIELD_STRING(LIBCFG_PARSER, elem, loglevnames[i], tmp);
>  		if (tmp[0] != '\0')
> 

Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/core/swupdate.c b/core/swupdate.c
index 5e5fbaf..58e662d 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -564,7 +564,7 @@  static int read_console_settings(void *elem, void __attribute__ ((__unused__)) *
 	char tmp[SWUPDATE_GENERAL_STRING_SIZE] = "";
 	int i;
 
-	for (i = ERRORLEVEL; i <= TRACELEVEL; i++) {
+	for (i = ERRORLEVEL; i <= LASTLOGLEVEL; i++) {
 		memset(tmp, 0, sizeof(tmp));
 		GET_FIELD_STRING(LIBCFG_PARSER, elem, loglevnames[i], tmp);
 		if (tmp[0] != '\0')