public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] logbuff: Change default console loglevel to 8
@ 2010-05-06 23:48 Peter Tyser
  2010-05-07  9:15 ` Detlev Zundel
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Tyser @ 2010-05-06 23:48 UTC (permalink / raw)
  To: u-boot

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
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-07 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 23:48 [U-Boot] [PATCH] logbuff: Change default console loglevel to 8 Peter Tyser
2010-05-07  9:15 ` Detlev Zundel
2010-05-07 17:57   ` Peter Tyser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox