diff options
author | Hyunchul Lee <cheol.lee@lge.com> | 2017-03-14 21:31:05 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-03-30 03:27:53 -0400 |
commit | 33fda9fa9fb081fae165348f32e3244414991fad (patch) | |
tree | 08f527adef7bd92697847af0e6f1fbce623f4d0e | |
parent | e328379a18c5293c123bc56c32f19f9365384686 (diff) |
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 <cheol.lee@lge.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | fs/ubifs/debug.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index b14c06f47a96..718b749fa11a 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c | |||
@@ -287,8 +287,10 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode) | |||
287 | break; | 287 | break; |
288 | } | 288 | } |
289 | 289 | ||
290 | pr_err("\t%d: %s (%s)\n", | 290 | pr_err("\t%d: inode %llu, type %s, len %d\n", |
291 | count++, dent->name, get_dent_type(dent->type)); | 291 | count++, (unsigned long long) le64_to_cpu(dent->inum), |
292 | get_dent_type(dent->type), | ||
293 | le16_to_cpu(dent->nlen)); | ||
292 | 294 | ||
293 | fname_name(&nm) = dent->name; | 295 | fname_name(&nm) = dent->name; |
294 | fname_len(&nm) = le16_to_cpu(dent->nlen); | 296 | fname_len(&nm) = le16_to_cpu(dent->nlen); |