Skip to content

Commit

Permalink
rasdaemon: arm: do not print error msg if field not found
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ruidong Tian committed Dec 19, 2024
1 parent e6cc13e commit 107401c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ras-arm-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 107401c

Please sign in to comment.