diff options
author | Leo Yan <leo.yan@arm.com> | 2025-06-11 15:44:02 +0100 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2025-09-02 09:12:58 +0100 |
commit | fd4ed47e9d6f7ab140fc2f060884c6d430fefca0 (patch) | |
tree | 61a9fd3aa0015dd13426711df1fe997fb2f0e9ca /rust/helpers/security.c | |
parent | 3252ee432e58871f81be211e5ef9630fc51e341f (diff) |
coresight: perf: Use %px for printing pointers
Use "%px" to print a pointer, which is better than casting the pointer
to unsigned long and printing it with the "%lx" specifier.
Note, the printing format will be updated as 64-bit value:
# cat /sys/devices/cs_etm/sinks/trbe0
0x000000003744496a
This commit dismisses the following smatch warnings:
coresight-etm-perf.c:854 etm_perf_sink_name_show() warn: argument 4 to %lx specifier is cast from pointer
coresight-etm-perf.c:946 etm_perf_cscfg_event_show() warn: argument 4 to %lx specifier is cast from pointer
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250611-arm_cs_fix_smatch_warning_v1-v1-2-02a66c69b604@arm.com
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions