summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet4linux@gmail.com>2026-09-13 00:41:55 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-25 19:28:07 +0200
commit459199ccd1813b0cb9193962a474c2e24b1b373f (patch)
treee21111f86405a738517a279dd18d6e1f4a72905a /tools/perf/scripts/python
parent18f64d8ca6dfd93c05bfeeda6171a8493746de23 (diff)
powercap: intel_rapl: Use %pe to print error pointers symbolically
Replace PTR_ERR() and %ld with %pe and pass the original pointer directly to pr_debug(). 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> Link: https://patch.msgid.link/20260912191156.185448-6-sumeet4linux@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions