diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2008-02-23 10:17:51 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2008-02-23 10:17:51 -0300 |
commit | 37c2f19e7c2ab8f1c36c637b6bc30561026fb316 (patch) | |
tree | c331974621070d4be485bb403faa09684fa862d7 | |
parent | 40c38155739054fb559fe9726e1e0de0cc3be5fb (diff) |
ubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | ubi-utils/src/unubi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/src/unubi.c b/ubi-utils/src/unubi.c index 8a022a3..ebd527c 100644 --- a/ubi-utils/src/unubi.c +++ b/ubi-utils/src/unubi.c @@ -118,9 +118,9 @@ static const char *usage = #define FN_INVAL "%s/eb%04u%s" /* invalid eraseblock */ #define FN_NSURE "%s/eb%04u_%03u_%03u_%03x%s" /* unsure eraseblock */ #define FN_VALID "%s/eb%04u_%03u_%03u_%03x%s" /* valid eraseblock */ -#define FN_VOLSP "%s/vol%03u_%03u_%03u_%04u" /* split volume */ +#define FN_VOLSP "%s/vol%03u_%03u_%03u_%04zu" /* split volume */ #define FN_VOLWH "%s/volume%03u" /* whole volume */ -#define FN_VITBL "%s/vol_info_table%u" /* vol info table */ +#define FN_VITBL "%s/vol_info_table%zu" /* vol info table */ static uint32_t crc32_table[256]; @@ -492,7 +492,7 @@ extract_itable(FILE *fpin, struct eb_info *cur, size_t bsize, size_t num, sprintf(name, "%s", rec.name); /* print record line to fpout */ - fprintf(fpout, "%u\t%u\t%u\t%s\t0x%08x\t%s\n", + fprintf(fpout, "%zu\t%u\t%u\t%s\t0x%08x\t%s\n", i, be32_to_cpu(rec.reserved_pebs), be32_to_cpu(rec.alignment), |