Skip to content

Commit 33fda9f

Browse files
hyeoncheolrichardweinberger
authored andcommitted
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: Hyunchul Lee <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent e328379 commit 33fda9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fs/ubifs/debug.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
287287
break;
288288
}
289289

290-
pr_err("\t%d: %s (%s)\n",
291-
count++, dent->name, get_dent_type(dent->type));
290+
pr_err("\t%d: inode %llu, type %s, len %d\n",
291+
count++, (unsigned long long) le64_to_cpu(dent->inum),
292+
get_dent_type(dent->type),
293+
le16_to_cpu(dent->nlen));
292294

293295
fname_name(&nm) = dent->name;
294296
fname_len(&nm) = le16_to_cpu(dent->nlen);

0 commit comments

Comments
 (0)