diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c index efd83f33a8069f94b6ab776d52e293eecb8626b3..addd3fc0e8771f9762457bc205d35b45ad03c0ab 100644 --- a/fs/jffs2/erase.c +++ b/fs/jffs2/erase.c @@ -351,7 +351,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl } while(--retlen); c->mtd->unpoint(c->mtd, ebuf, jeb->offset, c->sector_size); if (retlen) - printk(KERN_WARNING "Newly-erased block contained word 0x%lx at offset 0x%08x\n", + printk(KERN_WARNING "Newly-erased block contained word 0x%lx at offset 0x%08tx\n", *wordebuf, jeb->offset + c->sector_size-retlen*sizeof(*wordebuf)); return 0; } @@ -401,7 +401,7 @@ static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseb { size_t retlen; int ret; - uint32_t bad_offset; + uint32_t uninitialized_var(bad_offset); switch (jffs2_block_check_erase(c, jeb, &bad_offset)) { case -EAGAIN: goto refile;