From a6cccaea5a4743f4e4fb93a3ae9537e7357c783b Mon Sep 17 00:00:00 2001 From: wdenk Date: Fri, 6 Feb 2004 21:48:22 +0000 Subject: * 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 --- common/console.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common/console.c') diff --git a/common/console.c b/common/console.c index 629f60b7fe..1e0ca8de15 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); -- cgit v1.2.3