]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: fix compilation warnings in unubi.c when using gcc 4.2.3
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 23 Feb 2008 13:17:51 +0000 (10:17 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sat, 23 Feb 2008 13:17:51 +0000 (10:17 -0300)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
ubi-utils/src/unubi.c

index 8a022a3c14d43f1104f421f0945c43c136322340..ebd527c070c9266ce4c1a3200e5c3d78289b2e95 100644 (file)
@@ -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),