From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 29 Jul 2011 21:55:28 +0200 Subject: [U-Boot] [PATCH 2/3] cfb_console.c: drop custom PRINTD() and use debug() instead In-Reply-To: <1311969329-1109-1-git-send-email-wd@denx.de> References: <1311923413-62087-1-git-send-email-andreas.devel@googlemail.com> <1311969329-1109-1-git-send-email-wd@denx.de> Message-ID: <1311969329-1109-3-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Wolfgang Denk --- drivers/video/cfb_console.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 917bba6..d2dd421 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -348,13 +348,6 @@ void console_cursor(int state); #endif #endif -#if defined(DEBUG) || defined(DEBUG_CFB_CONSOLE) -#define PRINTD(x) printf(x) -#else -#define PRINTD(x) -#endif - - #ifdef CONFIG_CONSOLE_EXTRA_INFO /* * setup a board string: type, speed, etc. @@ -1736,7 +1729,7 @@ static int video_init(void) #ifdef CONFIG_VIDEO_LOGO /* Plot the logo and get start point of console */ - PRINTD("Video: Drawing the logo ...\n"); + debug("Video: Drawing the logo ...\n"); video_console_address = video_logo(); #else video_console_address = video_fb_address; @@ -1775,7 +1768,7 @@ int drv_video_init(void) skip_dev_init = (video_init() == -1); #if !defined(CONFIG_VGA_AS_SINGLE_DEVICE) - PRINTD("KBD: Keyboard init ...\n"); + debug("KBD: Keyboard init ...\n"); skip_dev_init |= (VIDEO_KBD_INIT_FCT == -1); #endif -- 1.7.6