aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-12-10 10:26:48 -0500
committerTyler Hicks <tyhicks@canonical.com>2013-12-17 14:04:19 -0500
commit9e78d14a9f641c0476f733f6fc559ba5cac6f52b (patch)
treee7f556500700857c1a2b500e7a9ffe6168ce5c65 /fs/ecryptfs
parent319e2e3f63c348a9b66db4667efa73178e18b17d (diff)
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>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/file.c4
-rw-r--r--fs/ecryptfs/inode.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c
index b1eaa7a1f82c..c705360e2b16 100644
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -230,8 +230,8 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
230 if (rc) { 230 if (rc) {
231 printk(KERN_ERR "%s: Error attempting to initialize " 231 printk(KERN_ERR "%s: Error attempting to initialize "
232 "the lower file for the dentry with name " 232 "the lower file for the dentry with name "
233 "[%s]; rc = [%d]\n", __func__, 233 "[%pd]; rc = [%d]\n", __func__,
234 ecryptfs_dentry->d_name.name, rc); 234 ecryptfs_dentry, rc);
235 goto out_free; 235 goto out_free;
236 } 236 }
237 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) 237 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE)
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index c36c44824471..87ad33e091e9 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -250,8 +250,8 @@ int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry,
250 if (rc) { 250 if (rc) {
251 printk(KERN_ERR "%s: Error attempting to initialize " 251 printk(KERN_ERR "%s: Error attempting to initialize "
252 "the lower file for the dentry with name " 252 "the lower file for the dentry with name "
253 "[%s]; rc = [%d]\n", __func__, 253 "[%pd]; rc = [%d]\n", __func__,
254 ecryptfs_dentry->d_name.name, rc); 254 ecryptfs_dentry, rc);
255 goto out; 255 goto out;
256 } 256 }
257 rc = ecryptfs_write_metadata(ecryptfs_dentry, ecryptfs_inode); 257 rc = ecryptfs_write_metadata(ecryptfs_dentry, ecryptfs_inode);
@@ -313,8 +313,8 @@ static int ecryptfs_i_size_read(struct dentry *dentry, struct inode *inode)
313 if (rc) { 313 if (rc) {
314 printk(KERN_ERR "%s: Error attempting to initialize " 314 printk(KERN_ERR "%s: Error attempting to initialize "
315 "the lower file for the dentry with name " 315 "the lower file for the dentry with name "
316 "[%s]; rc = [%d]\n", __func__, 316 "[%pd]; rc = [%d]\n", __func__,
317 dentry->d_name.name, rc); 317 dentry, rc);
318 return rc; 318 return rc;
319 } 319 }
320 320
@@ -418,8 +418,8 @@ static struct dentry *ecryptfs_lookup(struct inode *ecryptfs_dir_inode,
418 if (IS_ERR(lower_dentry)) { 418 if (IS_ERR(lower_dentry)) {
419 rc = PTR_ERR(lower_dentry); 419 rc = PTR_ERR(lower_dentry);
420 ecryptfs_printk(KERN_DEBUG, "%s: lookup_one_len() returned " 420 ecryptfs_printk(KERN_DEBUG, "%s: lookup_one_len() returned "
421 "[%d] on lower_dentry = [%s]\n", __func__, rc, 421 "[%d] on lower_dentry = [%pd]\n", __func__, rc,
422 ecryptfs_dentry->d_name.name); 422 ecryptfs_dentry);
423 goto out; 423 goto out;
424 } 424 }
425 if (lower_dentry->d_inode) 425 if (lower_dentry->d_inode)