From patchwork Thu Sep 21 20:01:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113931 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2424955qgf; Thu, 21 Sep 2017 13:01:13 -0700 (PDT) X-Received: by 10.80.206.73 with SMTP id k9mr2362789edj.145.1506024073608; Thu, 21 Sep 2017 13:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506024073; cv=none; d=google.com; s=arc-20160816; b=V4dQHiu+ChBPW3H8/3JvZJMVrXi/JaJu29aPbYCx+HaEqe/IG57Rc6cJqcERMDnwm9 2FgPy6LNfhLX43wQDOgasBEbnPoDNDF8ExpSOBkFLPualnoVcBILqciJtzdryC+o8WIZ cc41BXJ/pZxwJ3hP1LTfRdLjnH8Jhaa4JwsGkrcElpIbgWFGA4qDLw/cXJPrahbc7xAN sK7wQphapA/ZaqICrkY4em7yPlTgiQBnqbCwdENZTgXN05xS+3b64M3bzqeHliezjkJk 15frYF1Rrs0A1D9z8c6+TgIi5g2dS3PMd/GEsqmZDkJR8OQcuHvOPU2Ezs6COsMl4SYg VlwQ== 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=7Y8QtMG1oWjvoHywe/FwMa3Vo1d5mYe4vza6ELGTWTI=; b=KwqYyeMtar/4yquTnwz3y0YB7sg1Lh407cf29T5N1LTEiHxRCLUXimTCc3eM38ie2L BU0/I7gdVyHzgmtWWSw6zgSSYUT5FcZvrVwLW1NBDE6oP56vQSodwvnSRArJ6m1Jhru5 m9qXBdfgojhbqWIwJQ+qdnAWgBfogjUDdgMKpF6LsSnTnrfQdETDZELwv9sv975pziOQ f2m3tN7uDJbDcqRw6SZ0J0OdaSAhCaCJqWu+QKOja/8CNCrT1xFKvTJJpOsVSQjuJb8n wWGXngeVE1/63ogfab8YwLFuJuqqiK3HnGQRkFJfVhpHfiCHRG38bFVZ82oGqzNzs2Cx mmmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JbS6puVh; 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 d12si1966839edh.249.2017.09.21.13.01.12; Thu, 21 Sep 2017 13:01:13 -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=JbS6puVh; 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 730DBC21F7E; Thu, 21 Sep 2017 20:01: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=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 2B5A5C21C4E; Thu, 21 Sep 2017 20:01:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 08917C21C4E; Thu, 21 Sep 2017 20:01:04 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.denx.de (Postfix) with ESMTPS id 69DA1C21C45 for ; Thu, 21 Sep 2017 20:01:04 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id b127so6806573lfe.9 for ; Thu, 21 Sep 2017 13:01:04 -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=Rx10UZGyPxVcqbUtVUNJ5hJd8ouN5e+ZxIMqZipnins=; b=JbS6puVh5bg08QjhHkS+ZVzG8oQMxe/WAotAG//HMCO8pZDCTUuQo4yMQVpOUhvS3I s1tHwvrokid7sHUgqcfT6Tgl9pEVicUEXbNidLAZi/v7STADLTFSQ/eqx+B9kB2kMIqX H4hR6L6h3FJ6CLtbU1WDu54w096Bq7pxZG/PU= 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=Rx10UZGyPxVcqbUtVUNJ5hJd8ouN5e+ZxIMqZipnins=; b=V5GuG/1wsZ/tZTHPWWw+UKOgVgoH7gGYfRpRUM3dNSPRm4kAEg6LWIT9aosiJEG2Bb 1zDfI6ro4YlrC5RjtBRYaMMcJsENVwM3x2nWKlkUgvKAT6+PmLif3l/xj/mF1+A/OTmf I4HrJYU4VH2cMoVSo0C80Ld2wY2y6cP0pXk1DIG5QBTWzJ5xcS+Q4uBpOzGtfPfXCn7r 1XadojjNLdWcGHwq1dx1V6BV1BMrDZVEYk2nAMQFLnx64UFsONsHXakqlsso6ILdMvaL xNDt43mXbq+WMAFOskieh9WViWU6cjG7+exMYbjNqo/00ERpkiJXxz/S5T5QvwV4TmcW z7ZA== X-Gm-Message-State: AHPjjUjt8yucoDBOUCVUur3SWEaxS0tYkhZdElWtlXDNN7KwmRuZJ4HD oWPJ3VvATq7l5HHAyNALfJz29+C9s6Y= X-Google-Smtp-Source: AOwi7QBJXB1LwgJuTeJAXkxfIePYL3YtjdmoO5dl3a8z6KAwzPdr9pWE9PTTT61AjhPqZ9fDirwr6g== X-Received: by 10.46.16.202 with SMTP id 71mr1492921ljq.190.1506024063384; Thu, 21 Sep 2017 13:01:03 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 26sm353277lfx.50.2017.09.21.13.01.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 13:01:01 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 23:01:00 +0300 Message-Id: <20170921200100.27886-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.14.1 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH 1/1] omap: Omit fastboot.userdata_size related errors 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" When using regular $partitions variable (for Linux boot), we can see some unwanted messages: > ERROR: cannot find partition: 'userdata' > at arch/arm/mach-omap2/utils.c:96/omap_mmc_get_part_size() > Warning: fastboot.userdata_size: unable to calc Let's remove those, as missing 'userdata' partition is correct behavior for Linux partition, and we don't want to see some Android-related messages in this case. Signed-off-by: Sam Protsenko --- arch/arm/mach-omap2/utils.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 0b0bf1837c..3892853c7e 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -92,10 +92,8 @@ static u32 omap_mmc_get_part_size(const char *part) } res = part_get_info_by_name(dev_desc, part, &info); - if (res < 0) { - error("cannot find partition: '%s'\n", part); + if (res < 0) return 0; - } /* Calculate size in bytes */ sz = (info.size * (u64)info.blksz); @@ -111,13 +109,10 @@ static void omap_set_fastboot_userdata_size(void) u32 sz_kb; sz_kb = omap_mmc_get_part_size("userdata"); - if (sz_kb == 0) { - buf[0] = '\0'; - printf("Warning: fastboot.userdata_size: unable to calc\n"); - } else { - sprintf(buf, "%u", sz_kb); - } + if (sz_kb == 0) + return; /* probably it's not Android partition table */ + sprintf(buf, "%u", sz_kb); env_set("fastboot.userdata_size", buf); } #else