Re: [PATCH] EDAC/mce_amd: Do not print a stray newline
Borislav Petkov <[email protected]> Mon, 13 Jul 2026 16:22:19 -0700
| Newsgroups | org.kernel.vger.linux-edac,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260713232219.GAalVzK0UQ9rxlIWmT@fat_crate.local> |
On Mon, Jul 13, 2026 at 02:44:02PM -0400, Yazen Ghannam wrote: > On Sat, Jul 11, 2026 at 08:16:48PM -0700, Borislav Petkov wrote: > > From: "Borislav Petkov (AMD)" <[email protected]> > > > > With error records which don't have FRU text, an empty newline is > > printed like this: > > > > [28014.094610] mce: [Hardware Error]: Machine check events logged > > [28014.094674] [Hardware Error]: Corrected error, no action required. > > [28014.094687] [Hardware Error]: CPU:11 (19:44:1) MC0_STATUS[-|CE|MiscV|AddrV|-|-|SyndV|CECC|-|-|-]: 0x9c20400001010135 > > [28014.094724] [Hardware Error]: Error Addr: 0x000000019ba9a974 > > [28014.094732] [Hardware Error]: IPID: 0x001000b000000000, Syndrome: 0x000000081a1f2505 > > > > [28014.094744] [Hardware Error]: Load Store Unit Ext. Error Code: 1 > > [28014.094748] [Hardware Error]: cache level: L1, tx: DATA, mem-tx: DRD > > > > Move the \n into the last printk() call where it belongs. > > > > Signed-off-by: Borislav Petkov (AMD) <[email protected]> > > Reviewed-by: Yazen Ghannam <[email protected]> Yeah, Sashiko has a point: https://sashiko.dev/#/patchset/20260712031648.486110-1-bp%40kernel.org So we want the error records to be compact and fit in a block so that you can recognize them easier and thus not print each thing with a newline. But those things are not unconditional so you cannot always know. I need to think of a slick scheme what to do here. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette