diff options
author | Jonathan Fether <jonf@mds.com> | 2016-12-13 18:00:28 -0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-12-14 09:52:03 +0100 |
commit | a4a1faaabdba3ac2c2cc41c7354e1b81d5d8df10 (patch) | |
tree | e7725bd6301b4e77938a98ff81fdb346a0bf2425 /misc-utils/flashcp.c | |
parent | 3ae860f93f0aa6b573ed37099ac936aaa888c4ac (diff) |
mtd-utils: Correct casting for final status report in flashcp
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>
Diffstat (limited to 'misc-utils/flashcp.c')
-rw-r--r-- | misc-utils/flashcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |