mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
staging: vc04_services: vchiq_dev: Use %p to log pointer address
Solves the following Smatch warnings: vchiq_release() warn: argument 7 to %lx specifier is cast from pointer %p will print the hashed pointer to dynamic debug. In order to print the unmodified pointer address, one can use the `no_hash_pointers` via kernel parameters. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Link: https://lore.kernel.org/r/20231207083837.153843-3-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
93596ac342
commit
6cb3158903
1 changed files with 1 additions and 1 deletions
|
@ -1201,7 +1201,7 @@ static int vchiq_release(struct inode *inode, struct file *file)
|
|||
int ret = 0;
|
||||
int i;
|
||||
|
||||
dev_dbg(state->dev, "arm: instance=%lx\n", (unsigned long)instance);
|
||||
dev_dbg(state->dev, "arm: instance=%p\n", instance);
|
||||
|
||||
if (!state) {
|
||||
ret = -EPERM;
|
||||
|
|
Loading…
Reference in a new issue