diff options
author | Thomas Richter <tmricht@linux.ibm.com> | 2024-10-24 13:33:56 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-10-29 11:17:18 +0100 |
commit | 0c25132396568a8a48f79bd41dccbb54672aa862 (patch) | |
tree | 2bc5874538f137a4f38c97e471ff0b4f26d2a6a6 | |
parent | f2e9d46ac62ff2b01ae168f88739ae99ff376f2e (diff) | |
download | linux-stable-0c25132396568a8a48f79bd41dccbb54672aa862.tar.gz linux-stable-0c25132396568a8a48f79bd41dccbb54672aa862.tar.bz2 linux-stable-0c25132396568a8a48f79bd41dccbb54672aa862.zip |
s390/cpum_sf: Fix format string in pr_err()
Fix format string in pr_err() and use the built-in
hexadecimal prefix %#x to display a number with a leading
hexadecimal indicator 0x.
No functional change.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r-- | arch/s390/kernel/perf_cpum_sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c index 8a690f4f04d9..b7bde1e903db 100644 --- a/arch/s390/kernel/perf_cpum_sf.c +++ b/arch/s390/kernel/perf_cpum_sf.c @@ -1981,7 +1981,7 @@ static void cpumf_measurement_alert(struct ext_code ext_code, /* Invalid sampling buffer entry */ if (alert & (CPU_MF_INT_SF_IAE|CPU_MF_INT_SF_ISE)) { - pr_err("A sampling buffer entry is incorrect (alert=0x%x)\n", + pr_err("A sampling buffer entry is incorrect (alert=%#x)\n", alert); cpuhw->flags |= PMU_F_ERR_IBE; sf_disable(); |