On Wed, 2011-04-13 at 16:20 +0300, Andy Shevchenko wrote: > if (st.st_size % erasesize) { > fprintf(stderr, "Image size %ld bytes is not a multiple of erasesize %d bytes\n", > - st.st_size, erasesize); > + (long)st.st_size, erasesize); Same here. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)