commit | 8beabdde18d31ac10c7d211347c361f07c7cd5b0 | [log] [tgz] |
---|---|---|
author | David Howells <dhowells@redhat.com> | Mon Oct 19 21:40:32 2020 +0100 |
committer | David Howells <dhowells@redhat.com> | Fri Aug 27 13:34:02 2021 +0100 |
tree | 3f03bfe9b7d6b624b58bbed018bd07f486aa01ea | |
parent | c97a72ded933a1ec88fa8f8d7aecef098d3e540b [diff] [blame] |
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/
diff --git a/fs/cachefiles/key.c b/fs/cachefiles/key.c index be96f5f..7f94efc 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; }