From patchwork Fri Jul 20 15:18:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 142479 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3093211ljj; Fri, 20 Jul 2018 08:19:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexOTQnH5hH4LWYuan5/PSmPd7XQgw+IjJww6ADZhmBVZFJOaRMLT6BTei2kv3+oEIWzAaS X-Received: by 2002:a50:a6c7:: with SMTP id f7-v6mr3003400edc.225.1532099945567; Fri, 20 Jul 2018 08:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532099945; cv=none; d=google.com; s=arc-20160816; b=SAz++1EY9LmnvqugRZ12FMgwsM7A6ZXg+1a02Y64/Tm0p9kknx/KPXwa2ZunHT9OCf tRXh4Dn9nUDhX0jg3c7P9g1dsr11sBsezRTxpnLDm+M9aWTzt/Jt7c83pPKpLuVwEWbc WsjTni1X57Nam7MVKZk40BEUDxvhOYri9fyWH/vOrPvx/6b4w1s0iUMHSif39puzsaqJ +4FpJGeYO7bN8MV97xf98/pDf+zGGhMWHYZTL8s9nZA/v2I02MMSf5x5V8NsDrezIvRi JqOgLinOB7nz+LT2/g6NIcVm1/wD9wEGKz9sSG4I++J5mKw13rM8minn+829x39uS9Mh oVxg== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=VFmhcyYFyJL70Ja9FouHYE8NdXnSkQ/4jyxF4mSgsOs=; b=h9UfRRz+4OXy4MQzC3pYEsZ56kHthG3wR81yW+M53SuX4bdSnaiHYHuSYveCBLt0D9 sUTP52qgDYI3NwvUrDvug/mvy5iJQKUOwLO7sS7xLHRIeM+F+kos6CsALwWzvAqhX/Dm 5EswbiOk5x9ZjWI/dxzRwAGKZ2V90+yWpvK1hZxMNTBm9N+LmtaV3oY8OqIwXUTO9M9Q CLSpJT6dGyI3yiYdNr17mrwXnTNeyklo5wjHzATlnUJ3PQ1XzfwQX71zyPDO1kPJq/P2 YxSBuTYuhsNDUa9NFMV83lotFM2bj0ssmH7OQM7Rp7I5u70XXHf2qr/4whhRMaIJSnfR gyVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FupK4LGn; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id u26-v6si1225996edd.23.2018.07.20.08.19.05; Fri, 20 Jul 2018 08:19:05 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FupK4LGn; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 15F0EC21E1A; Fri, 20 Jul 2018 15:19:02 +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=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 E4D83C21C4A; Fri, 20 Jul 2018 15:19:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BB4EAC21C4A; Fri, 20 Jul 2018 15:18:59 +0000 (UTC) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by lists.denx.de (Postfix) with ESMTPS id 5AFD1C21BE5 for ; Fri, 20 Jul 2018 15:18:59 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id p6-v6so11440978ljc.5 for ; Fri, 20 Jul 2018 08:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kFzy1ybtb5tK2zIRlFKA/D1eRd4cD0cpUcUL0pY8jjM=; b=FupK4LGnxcLpK8+3JpUi5t+mBQ2E3XbBDzOJ3ponou/4f5QQw1VggsUw3dbx5fOK2V HrTgt2GoaMuXyzCPZhTCyZRrOU3F7Wb7bO9oXGPmb3NacuuAqG28YvDg6BQGK9ei5Z52 BD9tHPEss6eFSJLZY5U39o5xcIopQ92PzGfFQ= 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; bh=kFzy1ybtb5tK2zIRlFKA/D1eRd4cD0cpUcUL0pY8jjM=; b=W/Sj5+f3CNdXVWY2g5+3VebMHzd6owkfzxPX0YHLxGmCLETW0ntjLRPQ4xGxYhdARQ hfn1uQ9ZG2M3blrFVhdbBXSrIqibJO0zC2QpIQmt3znCcO+Cs+yzZTOH72d2gj3xvtOc kHp2Veq1Hi3/emOu4mRkJV/aAuJAuJ8D8rL2N6u6ThHEfvo61kiMDrWTb5XKFf2NOMP8 nzjeP7fr8IbxZpUlmaU7p14HUfBENthjh3NGlHToCaT7e5Vms7g8mC1pbxhRV1aH1e9L 1bsjW543NJYRW2ShGVu6myrQRnzOP0NwuO544r3kAU8mWfCndvVcWkIDWf0xvucaWHfj /U7w== X-Gm-Message-State: AOUpUlEwNipeHFm8NV6tw4XZfMRpPWLvzvoTjAN6972hP1FHfc00218D f0Eu33B/LVdBsLMTEOFWvRUlLekNSC8xmA== X-Received: by 2002:a2e:1984:: with SMTP id 4-v6mr2097718ljz.35.1532099938515; Fri, 20 Jul 2018 08:18:58 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id l1-v6sm415291lji.41.2018.07.20.08.18.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 08:18:57 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Fri, 20 Jul 2018 18:18:54 +0300 Message-Id: <20180720151856.23458-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.18.0 Cc: Maxime Ripard , Tom Rini Subject: [U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear 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" This patch series intended to make boot log better. Basically here we just remove unwanted error messages, relying on the message from most deep API to be printed (like mmc subsystem). At the moment this looks like most clean solution to cluttered log problem, as any other solution will be hackish. With this patch set applied we will see something like this: Loading Environment from FAT... MMC: no card present Loading Environment from MMC... OK instead of: Loading Environment from FAT... MMC: no card present ** Bad device mmc 0 ** Failed (-5) Loading Environment from MMC... OK Sam Protsenko (2): env: Don't print "Failed" error message disk: part: Don't show redundant error message disk/part.c | 2 +- env/env.c | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-)