summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/key.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-10-19 22:40:32 +0200
committerDavid Howells <dhowells@redhat.com>2021-08-27 14:34:02 +0200
commit8beabdde18d31ac10c7d211347c361f07c7cd5b0 (patch)
tree3f03bfe9b7d6b624b58bbed018bd07f486aa01ea /fs/cachefiles/key.c
parentfscache: Change %p in format strings to something else (diff)
downloadlinux-8beabdde18d31ac10c7d211347c361f07c7cd5b0.tar.xz
linux-8beabdde18d31ac10c7d211347c361f07c7cd5b0.zip
cachefiles: Change %p in format strings to something else
Change plain %p in format strings in cachefiles code to something more useful, since %p is now hashed before printing and thus no longer matches the contents of an oops register dump. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> cc: linux-cachefs@redhat.com Link: https://lore.kernel.org/r/160588476042.3465195.6837847445880367183.stgit@warthog.procyon.org.uk/ # rfc Link: https://lore.kernel.org/r/162431200692.2908479.9253374494073633778.stgit@warthog.procyon.org.uk/
Diffstat (limited to 'fs/cachefiles/key.c')
-rw-r--r--fs/cachefiles/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/key.c b/fs/cachefiles/key.c
index be96f5fc5cac..7f94efc97e23 100644
--- a/fs/cachefiles/key.c
+++ b/fs/cachefiles/key.c
@@ -150,6 +150,6 @@ char *cachefiles_cook_key(const u8 *raw, int keylen, uint8_t type)
key[len++] = 0;
key[len] = 0;
- _leave(" = %p %d", key, len);
+ _leave(" = %s %d", key, len);
return key;
}