[PATCH 0/2] x86/mce: Stop losing MCE record fields to pr_cont()

From: Breno Leitao

Date: Tue Sep 22 2026 - 07:20:35 EST


__print_mce() builds two of its four lines from pr_cont(). A printk from
another CPU breaks the line, and the orphaned tail loses the
"mce: [Hardware Error]: " prefix, requiring effort to parse things
clearly. Fatal machine checks are exactly when that happens.

Patch 1 is a no-op %llx cleanup to make checkpatch happy. Patch 2 makes
each line one record.

Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
---
Breno Leitao (2):
x86/mce: Spell the long long conversions in __print_mce() as %llx
x86/mce: Print each MCE record line in a single printk()

arch/x86/kernel/cpu/mce/core.c | 46 ++++++++++++++++++++++++++++--------------
1 file changed, 31 insertions(+), 15 deletions(-)
---
base-commit: b0fa123835c147e77b9a967de76dc899062bd405
change-id: 20260921-b4-mce-print-6178a29bcd8e

Best regards,
--
Breno Leitao <leitao@xxxxxxxxxx>