mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
staging: vc04_services: vchiq_arm: Use %p to log pointer address
Solves the following Smatch warnings: service_callback() warn: argument 7 to %lx specifier is cast from pointer service_callback() warn: argument 11 to %lx specifier is cast from pointer service_callback() warn: argument 12 to %lx specifier is cast from pointer service_callback() warn: argument 13 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-2-umang.jain@ideasonboard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
55e23aa95b
commit
93596ac342
@@ -1088,10 +1088,9 @@ service_callback(struct vchiq_instance *instance, enum vchiq_reason reason,
|
||||
rcu_read_unlock();
|
||||
|
||||
dev_dbg(service->state->dev,
|
||||
"arm: service %lx(%d,%p), reason %d, header %lx, instance %lx, bulk_userdata %lx\n",
|
||||
(unsigned long)user_service, service->localport,
|
||||
user_service->userdata, reason, (unsigned long)header,
|
||||
(unsigned long)instance, (unsigned long)bulk_userdata);
|
||||
"arm: service %p(%d,%p), reason %d, header %p, instance %p, bulk_userdata %p\n",
|
||||
user_service, service->localport, user_service->userdata,
|
||||
reason, header, instance, bulk_userdata);
|
||||
|
||||
if (header && user_service->is_vchi) {
|
||||
spin_lock(&msg_queue_spinlock);
|
||||
|
||||
Reference in New Issue
Block a user