Skip to content

Commit

Permalink
ubifs: Fix debug messages for an invalid filename in ubifs_dump_inode
Browse files Browse the repository at this point in the history
instead of filenames, print inode numbers, file types, and length.

Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Hyunchul Lee authored and Richard Weinberger committed Mar 30, 2017
1 parent e328379 commit 33fda9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 33fda9f

Please sign in to comment.