diff options
| author | Sumeet Pawnikar <sumeet4linux@gmail.com> | 2026-09-13 00:41:53 +0530 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2026-10-05 09:37:43 +0530 |
| commit | 3b585d7fa3a1256c8bc3b9bb3b1dcfc3b2ff5d91 (patch) | |
| tree | 637f4d19a4ed16d2384a4b6f3c5750c244cfa2e4 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 53732733c7af437b0ed710a1df91a67a0d3dfc07 (diff) | |
cpufreq: Use %pe to print error pointers symbolically
Replace PTR_ERR() and %ld with %pe and pass the original pointer directly
to pr_err() and pr_warn(). The %pe format specifier prints a symbolic error
name (e.g. -ENOMEM) when CONFIG_SYMBOLIC_ERRNAME is enabled, otherwise it
falls back gracefully and prints the raw integer value. This makes messages
more readable without any functional change.
Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
