summaryrefslogtreecommitdiff
path: root/tests/fs-tests/simple/ftrunc.c
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-06-12 12:05:45 +0200
committerRichard Weinberger <richard@nod.at>2016-08-25 15:32:14 +0200
commit45268141be14048f3feee31622c145c1fb5bf955 (patch)
tree91c8896d580821f86c854ddae1ed27164e2cd17d /tests/fs-tests/simple/ftrunc.c
parenta2d188795599846bc8f085418467b794881e7209 (diff)
mtd-utils: fix wrong format specifiers on mips32
This patch fixes the follwing compiler warnings: flash_erase.c: In function 'show_progress': flash_erase.c:56:22: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'off_t {aka long long int}' [-Wformat=] bareverbose(!quiet, "\rErasing %d Kibyte @ %"PRIxoff_t" -- %2i %% complete ", ^ ./include/common.h:81:10: note: in definition of macro 'bareverbose' printf(fmt, ##__VA_ARGS__); which are linked to the following buggy numerical output: Erasing 128 Kibyte @ 0 -- 917504 % complete flash_erase: Cleanmarker written at 0 Erasing 128 Kibyte @ 0 -- 1048576 % complete flash_erase: Cleanmarker written at 0 Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tests/fs-tests/simple/ftrunc.c')
0 files changed, 0 insertions, 0 deletions