Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600985
| From | Hyunchul Lee <cheol.lee@lge.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/3] ubifs: fix debug messages for an invalid filename in ubifs_dump_inode |
| Date | 2017-03-15 02:40 +0100 |
| Message-ID | <tl64V-je-5@gated-at.bofh.it> (permalink) |
| References | <tl64V-je-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
instead of filenames, print inode numbers, file types, and length.
Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
---
fs/ubifs/debug.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index b14c06f..718b749 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)
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);
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] ubifs: remove filename from debug messages in ubifs_readdir Hyunchul Lee <cheol.lee@lge.com> - 2017-03-15 02:40 +0100 [PATCH 2/3] ubifs: fix debug messages for an invalid filename in ubifs_dump_node Hyunchul Lee <cheol.lee@lge.com> - 2017-03-15 02:40 +0100 [PATCH 3/3] ubifs: fix debug messages for an invalid filename in ubifs_dump_inode Hyunchul Lee <cheol.lee@lge.com> - 2017-03-15 02:40 +0100 Re: [PATCH 1/3] ubifs: remove filename from debug messages in ubifs_readdir Richard Weinberger <richard@nod.at> - 2017-03-19 21:50 +0100
csiph-web