Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755125AbZCFGos (ORCPT ); Fri, 6 Mar 2009 01:44:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754704AbZCFGlF (ORCPT ); Fri, 6 Mar 2009 01:41:05 -0500 Received: from nwd2mail10.analog.com ([137.71.25.55]:50912 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754638AbZCFGk5 (ORCPT ); Fri, 6 Mar 2009 01:40:57 -0500 X-IronPort-AV: E=Sophos;i="4.38,312,1233550800"; d="scan'208";a="83883657" From: Bryan Wu To: alan@lxorguk.ukuu.org.uk Cc: linux-kernel@vger.kernel.org, Mike Frysinger , Bryan Wu Subject: [PATCH 12/18] Blackfin Serial Driver: fix building when debug is enabled but serial console is disabled Date: Fri, 6 Mar 2009 14:42:54 +0800 Message-Id: <1236321780-28718-13-git-send-email-cooloney@kernel.org> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1236321780-28718-1-git-send-email-cooloney@kernel.org> References: <1236321780-28718-1-git-send-email-cooloney@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 913 Lines: 30 From: Mike Frysinger Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- drivers/serial/bfin_5xx.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 5193d62..b89861d 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -1256,8 +1256,10 @@ void bfin_serial_debug(const char *fmt, ...) char buf[128]; va_list ap; +#ifdef CONFIG_SERIAL_BFIN_CONSOLE if (bfin_serial_console.index < 0) return; /* Too early. */ +#endif va_start(ap, fmt); vsprintf(buf, fmt, ap); -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/