From patchwork Mon Jun 13 12:24:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 634607 X-Patchwork-Delegate: trini@ti.com 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 3rSsQx0fnXz9sp7 for ; Mon, 13 Jun 2016 22:24:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6CD7EA75D2; Mon, 13 Jun 2016 14:24:20 +0200 (CEST) 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 f32qPIJXYiSI; Mon, 13 Jun 2016 14:24:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A676A7552; Mon, 13 Jun 2016 14:24:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F16D7A74FB for ; Mon, 13 Jun 2016 14:24:09 +0200 (CEST) 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 0jG2wEFNHvME for ; Mon, 13 Jun 2016 14:24:09 +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 ESMTPS id C0427A74D0 for ; Mon, 13 Jun 2016 14:24:06 +0200 (CEST) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3rSsQZ0FDtz3hjnY for ; Mon, 13 Jun 2016 14:24:06 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3rSsQZ08c6zvjMk for ; Mon, 13 Jun 2016 14:24:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id PTVUegOCbx-4 for ; Mon, 13 Jun 2016 14:24:05 +0200 (CEST) X-Auth-Info: 35RBftgbK0OGuJcZRTGFzOM6y20A/sQXnM2qLKVecyw= Received: from localhost (p4FCB71DE.dip0.t-ipconnect.de [79.203.113.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Mon, 13 Jun 2016 14:24:05 +0200 (CEST) From: Anatolij Gustschin To: u-boot@lists.denx.de Date: Mon, 13 Jun 2016 14:24:24 +0200 Message-Id: <1465820664-10004-2-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1465820664-10004-1-git-send-email-agust@denx.de> References: <1465820664-10004-1-git-send-email-agust@denx.de> Subject: [U-Boot] [PATCH 2/2] board_f: prevent misleading "Watchdog enabled" output X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Output the "Watchdog enabled" message only if hw_watchdog_init() call really happened. Signed-off-by: Anatolij Gustschin --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index 0e2e6bc..9f6e4cc 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -120,8 +120,8 @@ static int init_func_watchdog_init(void) defined(CONFIG_DESIGNWARE_WATCHDOG) || \ defined(CONFIG_IMX_WATCHDOG)) hw_watchdog_init(); -# endif puts(" Watchdog enabled\n"); +# endif WATCHDOG_RESET(); return 0;