From patchwork Wed Dec 14 02:00:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Fether X-Patchwork-Id: 87969 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2524519qgi; Tue, 13 Dec 2016 18:03:33 -0800 (PST) X-Received: by 10.98.73.1 with SMTP id w1mr104101424pfa.123.1481681012975; Tue, 13 Dec 2016 18:03:32 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f13si50377450plm.259.2016.12.13.18.03.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Dec 2016 18:03:32 -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 1cGyt5-0008Bw-Az; Wed, 14 Dec 2016 02:01:43 +0000 Received: from mail-oi0-x262.google.com ([2607:f8b0:4003:c06::262]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGyt0-000893-N4 for linux-mtd@lists.infradead.org; Wed, 14 Dec 2016 02:01:39 +0000 Received: by mail-oi0-x262.google.com with SMTP id a145so438540oii.0 for ; Tue, 13 Dec 2016 18:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mds-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=s1k8aRE3SykQW9d9FPqtccYyTbSzlHqVHT2r1IeFfgk=; b=InIYqIRAkkXqJsBoN3OPhnHj7Fn/MKf534XyehrYxy6mfcznFiUosmVKCbQm/7wHw8 HVwbjID5tp7JKo8HA+bTNsegjxc7gxalgejPp47Do04S18fdWuEpKJqnFgA7b1bKCY/o PGWBJnr/nN+xvt8RsxXbxip8N9cwKDbaGAKHSzVI8XnQQAi5ytaRpsbtCrSj08qMRsUK fYOekacG9yGMH6wfJnPmSgbOUyDT4MwwS9hPtXEKKg2uB3Bw5jcMllWLMlKZ64flcuO3 X4M/n7NohUPXebKYtk1AtR2VxPxjWtCmlB9n8GWfdNssoMxmrItoijn09HjHnxbHdQZf VHxQ== 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=s1k8aRE3SykQW9d9FPqtccYyTbSzlHqVHT2r1IeFfgk=; b=Hf9ecoxvZS2c6RDE1wtsJSQSfS0S//8ESTbVMkf+5JpUVz9jcGENJnmxq65TMFAG1k VPSaplnLtwQEiSq0+oYX+xcMbhG4DQ+GxBiOp3UvrPfX6Dv32B7J2TFhzQVyV0wfNPTk q8e7J7VjRYCvGhy68dwMrXX0SkBa9XWt35xYFUxCQrE0MS48aUsS0aYV/rmLE5xpid3s WACXZUMV2jQf29X5G8Y8dxfoddoqWdtHAMVV5Hq0ptEfYvwIBipye0PcNBXDC2L3j6Hu c34Dhcz4dOaklWaUTbDo0cbsK9/KSmg2+utQs50CRwHEyyMkUcrG3JcopTo4/Yq6B12N WOsg== X-Gm-Message-State: AKaTC01e64Brz5G6ArouPUCBcxs0ttOPJWjDnUE+S4EctwghH39R/dOOPsY6xbRgMoFLrlU2/cxhrT1MzjkvOo8ibhtS4H0r X-Received: by 10.36.79.10 with SMTP id c10mr5495858itb.56.1481680877118; Tue, 13 Dec 2016 18:01:17 -0800 (PST) Received: from NIGHTLY-PC.mds.com ([71.177.158.100]) by smtp-relay.gmail.com with ESMTP id j187sm2637982ita.4.2016.12.13.18.01.16; Tue, 13 Dec 2016 18:01:17 -0800 (PST) X-Relaying-Domain: mds.com From: Jonathan Fether To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd-utils: Correct casting for final status report in flashcp Date: Tue, 13 Dec 2016 18:00:28 -0800 Message-Id: <1481680828-10452-1-git-send-email-jonf@mds.com> X-Mailer: git-send-email 2.8.1.windows.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161213_180138_863357_2740FB37 X-CRM114-Status: UNSURE ( 7.32 ) 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:4003:c06:0:0:0:262 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: , Cc: Jonathan Fether MIME-Version: 1.0 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 --- misc-utils/flashcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.8.1.windows.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); exit (EXIT_SUCCESS);