print non_standard_event at one line
winterddd opened this issue · 1 comments
Now non_standard_event log use multi line, like this:
rasdaemon: register inserted at db
<...>-64065 [077] dNH. 0.054782 non_standard_event 2023-09-07 18:37:13 +0800
Recoverable
section type: a6980811-16ea-4e4d-b936-fb00a23ff29c fru text: fru id: 00000000-0000-0000-0000-000000000000
length: 124
error:
00000000: 00000050 00800005 00000000 00000000
00000010: 00010000 00000000 00000000 00000000
00000020: 00000000 00000000 00000d8c 02030480
00000030: 000001ff 00000000 0000003b 00000000
00000040: 00000000 00000000 08000002 08000002
00000050: 00000000 00000000 000001ff 00000000
00000060: 003b0000 f0402710 00000000 00000000
00000070: 00000000 00000000 00000000
But all other events just use one line, it is more reasonable log non_standard_event in one line exclude errors dump, so you can easily to get decoded non_standard_event log in one line if you implement a decoder. Like this:
rasdaemon: register inserted at db
<...>-69298 [082] dNH. 0.054850 non_standard_event 2023-09-07 18:48:40 +0800 Recoverable section type: a6980811-16ea-4e4d-b936-fb00a23ff29c fru text: fru id: 00000000-0000-0000-0000-000000000000 length: 124 ......
PR merged. Closing the issue.