staging: vc04_services: vchiq_arm: Use %p to log pointer address
authorUmang Jain <umang.jain@ideasonboard.com>
Thu, 7 Dec 2023 08:38:36 +0000 (14:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2023 14:06:35 +0000 (15:06 +0100)
commit93596ac342c501db98dbd7b94bc60c12daad7569
tree434998c7ce21a2320775435e2967e44b8dd6fd85
parent55e23aa95b10731c08ab207a42d868aaff3bd2a5
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>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c