]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: serve_image: Use PRIdoff_t as format specifier.
authorTorsten Fleischer <torfl@t-online.de>
Sat, 11 Feb 2017 16:43:32 +0000 (17:43 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 20 Feb 2017 12:12:55 +0000 (13:12 +0100)
To be independent on the size of off_t the format specifier determined of
common.h should be used instead of PRIu64.

Signed-off-by: Torsten Fleischer <torfl6749@gmail.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/serve_image.c

index cbcf3b70731fb39a701d8a8b6097f546b203127a..26632e39a69826168437d31c4fc2069af3d7016b 100644 (file)
@@ -18,6 +18,8 @@
 #include <crc32.h>
 #include <inttypes.h>
 
+#include <common.h>
+
 #include "mcast_image.h"
 
 int tx_rate = 80000;
@@ -126,7 +128,7 @@ int main(int argc, char **argv)
        }
 
        if (st.st_size % erasesize) {
-               fprintf(stderr, "Image size %" PRIu64 " bytes is not a multiple of erasesize %d bytes\n",
+               fprintf(stderr, "Image size %" PRIdoff_t " bytes is not a multiple of erasesize %d bytes\n",
                                st.st_size, erasesize);
                exit(1);
        }