mtd-utils: Correct casting for final status report in flashcp
authorJonathan Fether <jonf@mds.com>
Wed, 14 Dec 2016 02:00:28 +0000 (18:00 -0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 14 Dec 2016 08:52:03 +0000 (09:52 +0100)
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 <jonf@mds.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/flashcp.c

index 6594a453897f236a6a58abc101a3c0fc10312f0b..af3c88de9cede7c62fbdf70e095c90279ff365d2 100644 (file)
@@ -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);