
Previously, a default of 3 was assigned to the console loglevel while standard messages had a level of 4. This resulted in U-Boot's console disappearing if a user enabled CONFIG_LOGBUFFER but didn't manually set the 'loglevel' environment variable to a value greater than 4.
Setting the default console loglevel to 8 causes all messages to be printed to the console, which is standard U-Boot operation. Users can then reduce the console loglevel if they want using the 'loglevel' environment variable.
Signed-off-by: Peter Tyser ptyser@xes-inc.com --- common/cmd_log.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/common/cmd_log.c b/common/cmd_log.c index 3653fe1..e3ebe96 100644 --- a/common/cmd_log.c +++ b/common/cmd_log.c @@ -55,8 +55,12 @@ static int logbuff_printk(const char *line);
static char buf[1024];
-/* This combination will not print messages with the default loglevel */ -static unsigned console_loglevel = 3; +/* + * This combination will print all messages to the console by default. A user + * can reduce the console_loglevel via the "loglevel" environment variable if + * needed. + */ +static unsigned console_loglevel = 8; static unsigned default_message_loglevel = 4; static unsigned log_version = 1; #ifdef CONFIG_ALT_LB_ADDR