]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: arm: do not print error msg if field not found
authorRuidong Tian <tianruidong@linux.alibaba.com>
Thu, 19 Dec 2024 06:21:39 +0000 (14:21 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:14:06 +0000 (11:14 +0100)
Fix output from:
2024-12-19 13:52:02 +0800 affinity: 0 MPIDR: 0x810c0200 MIDR: 0x481fd010 running_state: 1 psci_state: 0<CANT FIND FIELD pei_len>
to:
2024-12-19 13:52:02 +0800 affinity: 0 MPIDR: 0x810c0200 MIDR: 0x481fd010 running_state: 1 psci_state: 0

Signed-off-by: Ruidong Tian <tianruidong@linux.alibaba.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-arm-handler.c

index ce10022573949bc4d675acc7ccb02ea09b1ca881..db2932778b30ad9d4bbfbd5871ab236dfd34e40f 100644 (file)
@@ -535,7 +535,7 @@ int ras_arm_event_handler(struct trace_seq *s,
        trace_seq_printf(s, " psci_state: %d", ev.psci_state);
 
        /* Upstream Kernels up to version 6.10 don't decode UEFI 2.6+ N.17 table */
-       if (tep_get_field_val(s, event, "pei_len", record, &val, 1) >= 0) {
+       if (tep_get_field_val(s, event, "pei_len", record, &val, 0) >= 0) {
                bool legacy_patch = false;
 
                ev.pei_len = val;