[PATCH 0/2] mtd-utils: Fix printf format specifier for off_t and loff_t

torfl at t-online.de torfl at t-online.de
Sat Feb 11 08:43:30 PST 2017


From: Torsten Fleischer <torfl at t-online.de>

On different systems the size of off_t and loff_t can differ from each
other and they can have a size of either 4 or 8 byte.

The first patch creates the definitions for the printf format specifier
for both data types according to the size of them.
This fixes several compiler warnings on 32bit systems.

The second patch replaces the format specifier that is wrong for 32bit
systems by the appropriate definition for off_t.

Torsten Fleischer (2):
  mtd-utils: Fix format specifier definitions for off_t and loff_t.
  mtd-utils: serve_image: Use PRIdoff_t as format specifier.

 configure.ac                   |  2 +-
 include/common.h               | 14 +++++++++-----
 misc-utils/serve_image.c       |  4 +++-
 tests/mtd-tests/nandpagetest.c |  2 +-
 4 files changed, 14 insertions(+), 8 deletions(-)

-- 
2.1.4




More information about the linux-mtd mailing list