Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33fda9fa authored by Hyunchul Lee's avatar Hyunchul Lee Committed by Richard Weinberger
Browse files

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: default avatarHyunchul Lee <cheol.lee@lge.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent e328379a
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -287,8 +287,10 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode)
			break;
			break;
		}
		}


		pr_err("\t%d: %s (%s)\n",
		pr_err("\t%d: inode %llu, type %s, len %d\n",
		       count++, dent->name, get_dent_type(dent->type));
		       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_name(&nm) = dent->name;
		fname_len(&nm) = le16_to_cpu(dent->nlen);
		fname_len(&nm) = le16_to_cpu(dent->nlen);