diff options
Diffstat (limited to 'misc-utils/serve_image.c')
-rw-r--r-- | misc-utils/serve_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/serve_image.c b/misc-utils/serve_image.c index f2475d6..6c8c8fb 100644 --- a/misc-utils/serve_image.c +++ b/misc-utils/serve_image.c @@ -129,8 +129,8 @@ int main(int argc, char **argv) } if (st.st_size % erasesize) { - fprintf(stderr, "Image size %" PRIdoff_t " bytes is not a multiple of erasesize %d bytes\n", - st.st_size, erasesize); + fprintf(stderr, "Image size %lld bytes is not a multiple of erasesize %d bytes\n", + (long long)st.st_size, erasesize); exit(1); } image = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, rfd, 0); |