projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e328379
)
ubifs: Fix debug messages for an invalid filename in ubifs_dump_inode
author
Hyunchul Lee
<
[email protected]
>
Wed, 15 Mar 2017 01:31:05 +0000
(10:31 +0900)
committer
Richard Weinberger
<
[email protected]
>
Thu, 30 Mar 2017 07:27:53 +0000
(09:27 +0200)
instead of filenames, print inode numbers, file types, and length.
Signed-off-by: Hyunchul Lee <
[email protected]
>
Signed-off-by: Richard Weinberger <
[email protected]
>
fs/ubifs/debug.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/debug.c
b/fs/ubifs/debug.c
index b14c06f47a96161cfa86534e00d1d71d54074acf..718b749fa11aa8901544a1e6925a7486bbb357f5 100644
(file)
--- 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)
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);