erofs: use %pd instead of messing with ->d_name
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 6 Jan 2021 04:03:16 +0000 (23:03 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Jan 2021 00:39:37 +0000 (19:39 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/erofs/namei.c

index 5f8cc73..3a81e1f 100644 (file)
@@ -234,8 +234,8 @@ static struct dentry *erofs_lookup(struct inode *dir,
        } else if (err) {
                inode = ERR_PTR(err);
        } else {
-               erofs_dbg("%s, %s (nid %llu) found, d_type %u", __func__,
-                         dentry->d_name.name, nid, d_type);
+               erofs_dbg("%s, %pd (nid %llu) found, d_type %u", __func__,
+                         dentry, nid, d_type);
                inode = erofs_iget(dir->i_sb, nid, d_type == FT_DIR);
        }
        return d_splice_alias(inode, dentry);