From: Torsten Fleischer Date: Sat, 11 Feb 2017 16:43:32 +0000 (+0100) Subject: mtd-utils: serve_image: Use PRIdoff_t as format specifier. X-Git-Tag: v2.0.1~36 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=22089b0e753bf9020ac64474b8b4ddbe308a4ae6;p=mtd-utils.git mtd-utils: serve_image: Use PRIdoff_t as format specifier. 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 Signed-off-by: David Oberhollenzer --- diff --git a/misc-utils/serve_image.c b/misc-utils/serve_image.c index cbcf3b7..26632e3 100644 --- a/misc-utils/serve_image.c +++ b/misc-utils/serve_image.c @@ -18,6 +18,8 @@ #include #include +#include + #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); }