From patchwork Tue Dec 13 23:59:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Fether X-Patchwork-Id: 87959 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2483860qgi; Tue, 13 Dec 2016 16:00:06 -0800 (PST) X-Received: by 10.98.58.81 with SMTP id h78mr104833585pfa.50.1481673605520; Tue, 13 Dec 2016 16:00:05 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id p62si49831772pfl.255.2016.12.13.16.00.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Dec 2016 16:00:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@mds-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGwyx-0001ua-17; Tue, 13 Dec 2016 23:59:39 +0000 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGwyt-0001rd-A5 for linux-mtd@lists.infradead.org; Tue, 13 Dec 2016 23:59:36 +0000 Received: by mail-vk0-x22a.google.com with SMTP id w194so4553782vkw.2 for ; Tue, 13 Dec 2016 15:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mds-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=5irvVBhvM51rZqtEqJ1nkm5SqYmL7Clb/yheNCcDt7k=; b=Njw+mKemYjErNmoL/E39WHgLwBABvHf6YCMnzaJuoOcouvsUeBLvmY3La2IclICJ+u VJ6zEOq0JHhxW4Vw0Y4l26JOZE8FxBcNeWRcG/cgLc7jZ7peA7aCY2NDEKlzh6DKx5eq 7h8nBc6A+gTWA3AUSVa4IFjXxA61BAUkb7FmUV+G0XAbXxh1TvDqDtzmjaD9jLijGaow iKPPeeU2UZd7Oc3ZPQ4Hg8A8H0r9Jb9S0M54iAWodTSWv9CdRdAuZjm5+Bl7jYAKoSty yIAHgzvLQhXGAeHPbS5ltVpsc5V7G869evqbOgbaczo41/QqmUjBrJ568mlgzQDR2YS4 cguQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5irvVBhvM51rZqtEqJ1nkm5SqYmL7Clb/yheNCcDt7k=; b=CZl8doexryc5moANNqyYayjDzT1Z9kLQ6Ixk/nC6FCxvOM3sgMfs+VdEoMg3kwvHJS cvpLac3qc6VxlGA77CoH47nujCyQJq61LLihLa7B7mf4YLBjrVAUXsmstdFD6xEju2mz 9gnKPNq+f7IZtVFcuqHJa39AGwZ+h05oC6u7ldnmuwbW/22MNOjtcN6LigPCGNZ6i+9A 0cFziMGUbZU0EaX5ZAxYYTb3zfJbGWTS4z1ZZ0GnEAy1g+5oUZKmr6OJqqAIZmCYFW9M eVZRIXZkFrEOwTvwVGpM3P5Eh4sfTLDLdUmFpcb95lh+CJ7dLsiyDZ4QlnjhiBvA3I8C N2vA== X-Gm-Message-State: AKaTC02I1HqKs6ejfBfH2bh4gBr8WHWP7KPMPImrsJ5R9wBqbgqHqUUmaRSGcuejy5exjZ/JnrYmamelcPxyVg== X-Received: by 10.176.1.205 with SMTP id 71mr83488443ual.44.1481673553218; Tue, 13 Dec 2016 15:59:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.3.51 with HTTP; Tue, 13 Dec 2016 15:59:12 -0800 (PST) From: Jon Fether Date: Tue, 13 Dec 2016 15:59:12 -0800 Message-ID: Subject: [PATCH] mtd: mtd-utils: Correct casting for final status report in flashcp To: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161213_155935_533298_E7E7230C X-CRM114-Status: UNSURE ( 5.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400c:c05:0:0:0:22a listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Add correct casting for filestat.st_size in flashcp.c. While the interim status updates had correct casting from commit 08b243, the final update was not. Signed-off-by: Jonathan Fether --- exit (EXIT_SUCCESS); -- 2.8.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/misc-utils/flashcp.c b/misc-utils/flashcp.c index 6594a45..af3c88d 100644 --- a/misc-utils/flashcp.c +++ b/misc-utils/flashcp.c @@ -386,8 +386,8 @@ int main (int argc,char *argv[]) if (flags & FLAG_VERBOSE) log_printf (LOG_NORMAL, "\rVerifying data: %lluk/%lluk (100%%)\n", - KB (filestat.st_size), - KB (filestat.st_size)); + KB ((unsigned long long)filestat.st_size), + KB ((unsigned long long)filestat.st_size)); DEBUG("Verified %d / %lluk bytes\n",written,(unsigned long long)filestat.st_size);