From patchwork Tue Nov 28 10:24:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119824 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp2911893edl; Tue, 28 Nov 2017 02:30:45 -0800 (PST) X-Google-Smtp-Source: AGs4zMaGA23xzfpDNlPbcfrOCQojh8nCMI3qrzpR1PG9M5kdmaSN3rFqzRAUIqzxBMaGYvr3y+eT X-Received: by 10.80.180.187 with SMTP id w56mr1933676edd.15.1511864911507; Tue, 28 Nov 2017 02:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511864911; cv=none; d=google.com; s=arc-20160816; b=valH19hQIgGx3WyIe08+LMth4bIBecTWFws1+p7ibtKCZMR3mgnXCSuOmpLjc2mMhg iq0uu1D4bTjr/E0+z9XwbQ1pOgAz/au+uCEDP2VygH8BX8Jj3JG4/w7b4YFuv24vxW6b ZbGxQn5M7WnR3MFhvS0TnTiKwo5VOlinsqPsBi3ljDO4CGTfUr393PhMe1qWyg5LB5Po dwa8XNdjCLYHCGCOW1SV8DxqP7a/e6rEf86EWMueUdqGErbUa+xZSRpqTxG65MgQMPc1 S2ov7LJwWSP7hIc1utB8/BI4PRZkEaI4w2dPKqzc4TNJyKlJo05yrmwWd3Oav42t2+Ja +fbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:references :in-reply-to:message-id:date:to:from:arc-authentication-results; bh=GOxmTi2ntFXqZ6VqwEJ24/KQyzmhCBBse+JNs5J7yaE=; b=omy1B/ornBBjGQYZOGQ5pfSafmlYmw9zOqBrN1Em5n3lK5WsTQe95vYU81ZkSZA+eC r268ZIONyH0RFKSvM42aTDtcBYqNmhU4uN1g/QUi62/9GaeWvBtvb4+U82eRaOqGlwM3 EE2QYjitN8nG7zjaptW/i4+7ni1Lj1iQrEIIO/u0OAmQkt4r3+UUWX8wXDtpnO3jrwtK 9BUsPCfKrxuwiowjsq1D/FWvj6mjJdqWLGCGfGO1I2Ac0bC0QpGuNJMK9p+RJ6HLQVDX hcNMHnN+n2JASYjJ+yVkEFxZBJ+B0siQK/jukanef5eONXdLBuPokMOOeF577OkP7HnC rWZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id f14si8071502edb.205.2017.11.28.02.28.31; Tue, 28 Nov 2017 02:28:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 094BEC21DE5; Tue, 28 Nov 2017 10:27:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0DF00C21DDF; Tue, 28 Nov 2017 10:25:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1335FC21E4B; Tue, 28 Nov 2017 10:24:57 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id D3F09C21DA2 for ; Tue, 28 Nov 2017 10:24:54 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 3415B207AF; Tue, 28 Nov 2017 11:24:54 +0100 (CET) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0D36320380; Tue, 28 Nov 2017 11:24:54 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Tue, 28 Nov 2017 11:24:40 +0100 Message-Id: <45c910bdc2ad56e4ab10612ca801692812b3bbfc.1511864667.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Cc: Thomas Petazzoni , u-boot@lists.denx.de, Andre Przywara , agraf@suse.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH 05/14] env: Make it explicit where we're loading our environment from X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Since we can have multiple environments now, it's better to provide a decent indication on what environments were tried and which were the one to fail and succeed. Signed-off-by: Maxime Ripard Reviewed-by: Simon Glass --- env/env.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/env/env.c b/env/env.c index 1d13220aa79b..44f9908e2c2d 100644 --- a/env/env.c +++ b/env/env.c @@ -109,12 +109,11 @@ int env_load(void) if (!drv->load) continue; + printf("Loading Environment from %s... ", drv->name); ret = drv->load(); + printf("%s\n", ret ? "Failed" : "OK"); if (!ret) return 0; - - debug("%s: Environment %s failed to load (err=%d)\n", __func__, - drv->name, ret); } return -ENODEV;