From patchwork Fri Jul 29 19:55:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 107448 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id BCB6FB6F62 for ; Sat, 30 Jul 2011 05:56:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 121D02809B; Fri, 29 Jul 2011 21:55:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ni8EAr2DnLR; Fri, 29 Jul 2011 21:55:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 470D9280A9; Fri, 29 Jul 2011 21:55:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BC982280A6 for ; Fri, 29 Jul 2011 21:55:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LSRkx+e5Q6st for ; Fri, 29 Jul 2011 21:55:43 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTP id 89B1C28099 for ; Fri, 29 Jul 2011 21:55:42 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 1DB33186DECE for ; Fri, 29 Jul 2011 21:55:42 +0200 (CEST) X-Auth-Info: LgC+RlsYFTw6rwcKGct0RPjrHVT140Pg9+6RncT1sdg= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 355021C0006E for ; Fri, 29 Jul 2011 21:55:42 +0200 (CEST) Received: from gemini.denx.de (unknown [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 1111DC913109 for ; Fri, 29 Jul 2011 21:55:42 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 02D1F166C86F; Fri, 29 Jul 2011 21:55:41 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Fri, 29 Jul 2011 21:55:28 +0200 Message-Id: <1311969329-1109-3-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6 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> Subject: [U-Boot] [PATCH 2/3] cfb_console.c: drop custom PRINTD() and use debug() instead X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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