summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-02-06 21:48:22 +0000
committerwdenk <wdenk>2004-02-06 21:48:22 +0000
commita6cccaea5a4743f4e4fb93a3ae9537e7357c783b (patch)
tree7e4ef47208c164f62c6384e8f76afc073cc14145 /common/console.c
parent5e4be00fb037feb6476125d044b98e0e22b70d31 (diff)
* Patch by Wolter Kamphuis, 15 Dec 2003:
made CONFIG_SILENT_CONSOLE usable on all architectures * Disable date command on TQM866M - there is no RTC on MPC866
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 629f60b7fe6..1e0ca8de15a 100644
--- a/common/console.c
+++ b/common/console.c
@@ -191,6 +191,11 @@ void putc (const char c)
{
DECLARE_GLOBAL_DATA_PTR;
+#ifdef CONFIG_SILENT_CONSOLE
+ if (gd->flags & GD_FLG_SILENT)
+ return(0);
+#endif
+
if (gd->flags & GD_FLG_DEVINIT) {
/* Send to the standard output */
fputc (stdout, c);
@@ -204,6 +209,11 @@ void puts (const char *s)
{
DECLARE_GLOBAL_DATA_PTR;
+#ifdef CONFIG_SILENT_CONSOLE
+ if (gd->flags & GD_FLG_SILENT)
+ return;
+#endif
+
if (gd->flags & GD_FLG_DEVINIT) {
/* Send to the standard output */
fputs (stdout, s);