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
@@ -442,13 +442,16 @@ static int jffs2_sum_process_sum_data(struct jffs2_sb_info *c, struct jffs2_eras
|
||||
/* This should never happen, but https://dev.laptop.org/ticket/4184 */
|
||||
checkedlen = strnlen(spd->name, spd->nsize);
|
||||
if (!checkedlen) {
|
||||
printk(KERN_ERR "Dirent at %08x has zero at start of name. Aborting mount.\n",
|
||||
jeb->offset + je32_to_cpu(spd->offset));
|
||||
pr_err("Dirent at %08x has zero at start of name. Aborting mount.\n",
|
||||
jeb->offset +
|
||||
je32_to_cpu(spd->offset));
|
||||
return -EIO;
|
||||
}
|
||||
if (checkedlen < spd->nsize) {
|
||||
printk(KERN_ERR "Dirent at %08x has zeroes in name. Truncating to %d chars\n",
|
||||
jeb->offset + je32_to_cpu(spd->offset), checkedlen);
|
||||
pr_err("Dirent at %08x has zeroes in name. Truncating to %d chars\n",
|
||||
jeb->offset +
|
||||
je32_to_cpu(spd->offset),
|
||||
checkedlen);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user