jffs2: Convert printks to pr_<level>
Use the more current logging style. Coalesce formats, align arguments. Convert uses of embedded function names to %s, __func__. A couple of long line checkpatch errors I don't care about exist. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:

committed by
David Woodhouse

parent
9c261b33a9
commit
da320f055a
@@ -261,12 +261,15 @@ void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c)
|
||||
bad += c->sector_size;
|
||||
}
|
||||
|
||||
#define check(sz) \
|
||||
if (sz != c->sz##_size) { \
|
||||
printk(KERN_WARNING #sz "_size mismatch counted 0x%x, c->" #sz "_size 0x%x\n", \
|
||||
sz, c->sz##_size); \
|
||||
dump = 1; \
|
||||
}
|
||||
#define check(sz) \
|
||||
do { \
|
||||
if (sz != c->sz##_size) { \
|
||||
pr_warn("%s_size mismatch counted 0x%x, c->%s_size 0x%x\n", \
|
||||
#sz, #sz, sz, c->sz##_size); \
|
||||
dump = 1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
check(free);
|
||||
check(dirty);
|
||||
check(used);
|
||||
@@ -274,11 +277,12 @@ void __jffs2_dbg_superblock_counts(struct jffs2_sb_info *c)
|
||||
check(unchecked);
|
||||
check(bad);
|
||||
check(erasing);
|
||||
|
||||
#undef check
|
||||
|
||||
if (nr_counted != c->nr_blocks) {
|
||||
printk(KERN_WARNING "%s counted only 0x%x blocks of 0x%x. Where are the others?\n",
|
||||
__func__, nr_counted, c->nr_blocks);
|
||||
pr_warn("%s counted only 0x%x blocks of 0x%x. Where are the others?\n",
|
||||
__func__, nr_counted, c->nr_blocks);
|
||||
dump = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user