diff options
author | David Howells <dhowells@redhat.com> | 2014-01-06 14:04:23 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-01-06 14:04:23 -0500 |
commit | a34e15cc35c743f0e49125a4fbd22a7c55b686d8 (patch) | |
tree | dd9df2a7457f5656b5c6a3aa20660ab2165fbe37 /fs/ext4/namei.c | |
parent | 52e4477758eef45c2fa28b087abf83847126bc28 (diff) |
ext4: use %pd printk specificer
Use the new %pd printk() specifier in Ext4 to replace passing of
dentry name or dentry name and name length * 2 with just passing the
dentry.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
cc: Andreas Dilger <adilger.kernel@dilger.ca>
cc: linux-ext4@vger.kernel.org
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 5a0408d7b114..3e9e70663233 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -1425,9 +1425,8 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsi | |||
1425 | return ERR_PTR(-EIO); | 1425 | return ERR_PTR(-EIO); |
1426 | } | 1426 | } |
1427 | if (unlikely(ino == dir->i_ino)) { | 1427 | if (unlikely(ino == dir->i_ino)) { |
1428 | EXT4_ERROR_INODE(dir, "'%.*s' linked to parent dir", | 1428 | EXT4_ERROR_INODE(dir, "'%pd' linked to parent dir", |
1429 | dentry->d_name.len, | 1429 | dentry); |
1430 | dentry->d_name.name); | ||
1431 | return ERR_PTR(-EIO); | 1430 | return ERR_PTR(-EIO); |
1432 | } | 1431 | } |
1433 | inode = ext4_iget(dir->i_sb, ino); | 1432 | inode = ext4_iget(dir->i_sb, ino); |