mbox series

[v3,0/2] staging: vc04_services: Use %p to log pointer

Message ID 20231207083837.153843-1-umang.jain@ideasonboard.com (mailing list archive)
Headers show
Series staging: vc04_services: Use %p to log pointer | expand

Message

Umang Jain Dec. 7, 2023, 8:38 a.m. UTC
%lx is used to print the unmodified pointer address for debugging.
%p will print the hashed pointer address to avoid leaking information
about kernel memory layout to userspace. But when `no_hash_pointers`
is passed as kernel parameter, unmodified pointer address will be
printed.

Hence, drop %lx in favour of %p. For debugging purposes, one can
easily depend on `no_hash_pointers` kernel parameter.

Changes in v3:
- reword commit subject line.

Changes in v2:
- Built/Rebased on top of:
  [PATCH v2 0/5] staging: vc04_services: Drop custom logging

Umang Jain (2):
  staging: vc04_services: vchiq_arm: Use %p to log pointer address
  staging: vc04_services: vchiq_dev: Use %p to log pointer address

 .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c  | 7 +++----
 .../staging/vc04_services/interface/vchiq_arm/vchiq_dev.c  | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)


base-commit: 55e23aa95b10731c08ab207a42d868aaff3bd2a5