]> git.baikalelectronics.ru Git - kernel.git/commitdiff
afs: Fix debugging statements with %px to be %p
authorDavid Howells <dhowells@redhat.com>
Tue, 9 Jun 2020 15:25:02 +0000 (16:25 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 9 Jun 2020 17:17:14 +0000 (18:17 +0100)
Fix a couple of %px to be %p in debugging statements.

Fixes: 590fdde7416c ("afs: Build an abstraction around an "operation" concept")
Fixes: 02dd6dcf91e3 ("afs: Detect cell aliases 1 - Cells with root volumes")
Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
fs/afs/dir.c
fs/afs/vl_alias.c

index 25cbe0aeeec5060d490f83f49bead12f620b2e09..aa1d34141ea38fe584a7f14ee2007a99015cc206 100644 (file)
@@ -980,7 +980,7 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
        if (!IS_ERR_OR_NULL(inode))
                fid = AFS_FS_I(inode)->fid;
 
-       _debug("splice %px", dentry->d_inode);
+       _debug("splice %p", dentry->d_inode);
        d = d_splice_alias(inode, dentry);
        if (!IS_ERR_OR_NULL(d)) {
                d->d_fsdata = dentry->d_fsdata;
index 136fc6164e0092236d38140eef7e3de34991ef8a..5082ef04e99c5c4d85802941edcad5c31b945893 100644 (file)
@@ -28,7 +28,7 @@ static struct afs_volume *afs_sample_volume(struct afs_cell *cell, struct key *k
        };
 
        volume = afs_create_volume(&fc);
-       _leave(" = %px", volume);
+       _leave(" = %p", volume);
        return volume;
 }