From patchwork Fri Oct 6 11:35:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 115054 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp1259280edb; Fri, 6 Oct 2017 04:35:15 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAvOytOAQyInRyKYFLhjt+PETF56ruaOokGdmN4Z2tJaPejrWnu8AsCfxGfzCa+nUouoTqB X-Received: by 10.80.139.232 with SMTP id n37mr2805194edn.291.1507289715598; Fri, 06 Oct 2017 04:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507289715; cv=none; d=google.com; s=arc-20160816; b=PRWs7kGcm6WqP87wyhQ8SIuI+iSILPi9UgCla1+B2sh/BQRtnuea2m2Fx6TCEXRbL6 ti2AlmeBN/min1RBrKLTAwuW8sgD3P3aHK1PM2YIRZcm0QFsWBtF5cqfavBTVqWBGMTa Fs6z3z8zoH+SgqCIrNoHy1SBtRlvZCOKgnAL+dg6Xgo10PI3tyhH8Cj4iMTUq2p7bgv8 PVRySXPJR/25WetS9Y6xLVLqLXi1aXHMhQzEAq/XzaPkOgp+Fr6I/XFkrrmibaWU4C63 9SvV7RyI64PiyFVFFVRF8ZQPU2zvCloKymxvKEE+iUyq+DFfMSoxsJTyJtabrkWc3gLI zWkQ== 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:message-id:date:to:from :arc-authentication-results; bh=KfbhnwcOXKrDGqKbL87VOAMjuL0RFW7Yk6BcEahSNBQ=; b=JHE/mNf9WyIZO0Ed9g5bbgC/2TN3yvAiIqEH1BxisYACdYHfFNYbTLi82iO/gWeP8V wc3izbnL34f6/m7kHpgXX9wgmuG89gDBB9WTSve5NQgd2HwnNaa+XDMafTGZJC5dSQ0Q Glky/A4wE/k1nio5CqoXg6xT+svYncOWmI4sORqImHGKSwPyyBYhJRMsJv1C9sma05SO aWUUd96MOn9dhpxUAaP3JSNmVe8ymjSOLzjAYya8EoefmUt3dJL3ffjn1G03mZHArD8h 7FGNunMJGgs06EtR7Abf59vl/7RvJZNhEngHBhiBBGv9JP5SB0EQU/L3uZhnEb/SSVyW TMXg== 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 u16si1372458edb.361.2017.10.06.04.35.15; Fri, 06 Oct 2017 04:35:15 -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; 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 328C4C21DC3; Fri, 6 Oct 2017 11:35:12 +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 B9DCCC21C4C; Fri, 6 Oct 2017 11:35:10 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F2068C21C4C; Fri, 6 Oct 2017 11:35:09 +0000 (UTC) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 71BE9C21C40 for ; Fri, 6 Oct 2017 11:35:09 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BCDC7AAA3 for ; Fri, 6 Oct 2017 11:35:08 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Fri, 6 Oct 2017 13:35:07 +0200 Message-Id: <20171006113507.81996-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PATCH v2] iso: Reduce verbosity on test and info calls 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" The test and info callbacks into the partition callback struct are used by the "part list" command on the command line. That command is used by the distro script. With verb=1 set, "part list" thus throws a lot of warnings about partitions it can't find when an upper layer searches for partitions. So let's reduce verbosity to bring it to the same level of noise as the other partition targets. Signed-off-by: Alexander Graf --- v1 -> v2: - Also silence the info callback --- disk/part_iso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/part_iso.c b/disk/part_iso.c index 8aef251f4e..4036b00b25 100644 --- a/disk/part_iso.c +++ b/disk/part_iso.c @@ -202,7 +202,7 @@ found: static int part_get_info_iso(struct blk_desc *dev_desc, int part_num, disk_partition_t *info) { - return part_get_info_iso_verb(dev_desc, part_num, info, 1); + return part_get_info_iso_verb(dev_desc, part_num, info, 0); } static void part_print_iso(struct blk_desc *dev_desc) @@ -228,7 +228,7 @@ static int part_test_iso(struct blk_desc *dev_desc) { disk_partition_t info; - return part_get_info_iso_verb(dev_desc, 1, &info, 1); + return part_get_info_iso_verb(dev_desc, 1, &info, 0); } U_BOOT_PART_TYPE(iso) = {