From: Thomas Richter Date: Thu, 24 Oct 2024 11:33:56 +0000 (+0200) Subject: s390/cpum_sf: Fix format string in pr_err() X-Git-Tag: v6.13-rc1~206^2~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c25132396568a8a48f79bd41dccbb54672aa862;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Hendrik Brueckner Reviewed-by: Sumanth Korikkar Signed-off-by: Heiko Carstens --- diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c index 8a690f4f04d92..b7bde1e903db3 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();