Use %pd in eCryptFS
Use the new %pd printk() specifier in eCryptFS 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> cc: ecryptfs@vger.kernel.org Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:

committed by
Tyler Hicks

parent
319e2e3f63
commit
9e78d14a9f
@@ -230,8 +230,8 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
|
||||
if (rc) {
|
||||
printk(KERN_ERR "%s: Error attempting to initialize "
|
||||
"the lower file for the dentry with name "
|
||||
"[%s]; rc = [%d]\n", __func__,
|
||||
ecryptfs_dentry->d_name.name, rc);
|
||||
"[%pd]; rc = [%d]\n", __func__,
|
||||
ecryptfs_dentry, rc);
|
||||
goto out_free;
|
||||
}
|
||||
if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE)
|
||||
|
Reference in New Issue
Block a user