Message ID | 20201113103000.34281-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | [V2] Fix DEBUG log color application | expand |
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 --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')
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(-)