提交 33fda9fa 编写于 作者: H Hyunchul Lee 提交者: Richard Weinberger

ubifs: Fix debug messages for an invalid filename in ubifs_dump_inode

instead of filenames, print inode numbers, file types, and length.
Signed-off-by: NHyunchul Lee <cheol.lee@lge.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 e328379a
......@@ -287,8 +287,10 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
break;
}
pr_err("\t%d: %s (%s)\n",
count++, dent->name, get_dent_type(dent->type));
pr_err("\t%d: inode %llu, type %s, len %d\n",
count++, (unsigned long long) le64_to_cpu(dent->inum),
get_dent_type(dent->type),
le16_to_cpu(dent->nlen));
fname_name(&nm) = dent->name;
fname_len(&nm) = le16_to_cpu(dent->nlen);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册