From patchwork Wed Sep 30 02:14:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 1374039 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ossystems.com.br Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C1KbD2ymFz9sSG for ; Wed, 30 Sep 2020 12:14:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D95A8158B; Wed, 30 Sep 2020 04:14:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ossystems.com.br Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0596E8158B; Wed, 30 Sep 2020 04:14:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7295A808F1 for ; Wed, 30 Sep 2020 04:14:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ossystems.com.br Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=otavio.salvador@gmail.com Received: by mail-qk1-f194.google.com with SMTP id d20so32953qka.5 for ; Tue, 29 Sep 2020 19:14:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :organization:content-transfer-encoding; bh=UzUYfq48kqIDVBQLBcMB5z+7d+EMJIZmZWMPzWxnFL0=; b=IEOor6iibPrX5aXPoBiOnEPVHoEE0kFQmCKuOcNKvIBfTu93S+mJHXv2CnozzcqVy4 PWp/ZDVc92YNy+9lnjJRqkds20b5w2qGAIEprCy3cftL0juLnyfGnQJOamJiFODxFyJV ROr2oZdmR2Fa7Xn1Hik3b44mJSNFU06hvSRBBnGcv5KqapuU10bhYE8xkUzARUObTzDx k6GNyrIOvBFEBa2ETAELTm1h7vYCIjrrcwZkVEr+YKe8lfOUrLFZ3lG+a7ursy0xTi+1 cFSgHa7oMVGoxR0fXr6laoWZzh7/g6OoB4L5rUrysdg/2pAkaGCp2oKffMkqQl0SpNpw DkxA== X-Gm-Message-State: AOAM531dbFqmyPPjuqY6h7IIRiaHHhTQGjmToQQx1OvFrkBaId7tesx6 yHAG3J2AasZMJcnH8nITeN95sh5pEF4xbA== X-Google-Smtp-Source: ABdhPJxZ/j8PObSXRnKvtRpzx2tfJzrEmgfkZhKcuzdfS9ULvuWwG1j4VuS9nHvWs9OaoHfvsp+wcg== X-Received: by 2002:a05:620a:222:: with SMTP id u2mr528435qkm.218.1601432080885; Tue, 29 Sep 2020 19:14:40 -0700 (PDT) Received: from localhost ([181.220.78.182]) by smtp.gmail.com with ESMTPSA id x197sm414955qkb.17.2020.09.29.19.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 19:14:40 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Cc: Otavio Salvador , Bin Meng , Giulio Benetti , Heiko Stuebner , Philippe Reynes , Simon Glass , Stefan Roese Subject: [PATCH 1/2] spl: Avoid printing boot device if silent console is enabled Date: Tue, 29 Sep 2020 23:14:28 -0300 Message-Id: <20200929231414.1.If4f1e6e03b7f0444b40d56e0cb624b863f0b4dc5@changeid> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This avoid emitting message if silent console is in use, otherwise it pollutes the output and user desires a quiet console Signed-off-by: Otavio Salvador --- common/spl/spl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 4840d1d3670..63c48fbf33d 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -552,7 +552,9 @@ static int boot_from_devices(struct spl_image_info *spl_image, struct spl_image_loader *loader; loader = spl_ll_find_loader(spl_boot_list[i]); -#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) +#if defined(CONFIG_SPL_SERIAL_SUPPORT) \ + && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) \ + && !defined(CONFIG_SILENT_CONSOLE) if (loader) printf("Trying to boot from %s\n", loader->name); else