diff mbox series

lib: fwts_oops: fix the WARN_ON warnings in kernel not found

Message ID 20230605034918.13478-1-ivan.hu@canonical.com
State Accepted
Headers show
Series lib: fwts_oops: fix the WARN_ON warnings in kernel not found | expand

Commit Message

Ivan Hu June 5, 2023, 3:49 a.m. UTC
BugLink: https://bugs.launchpad.net/fwts/+bug/2022871

Due to the kernel warning message changed by the commuted
dcb6b45254e2281b6f99ea7f2d51343954aa3ba8,
"panic: add cpu/pid to warn_slowpath_common in WARNING printk()s".

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/lib/src/fwts_oops.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/src/lib/src/fwts_oops.c b/src/lib/src/fwts_oops.c
index f23ac867..81fdec13 100644
--- a/src/lib/src/fwts_oops.c
+++ b/src/lib/src/fwts_oops.c
@@ -61,6 +61,8 @@  static void fwts_klog_stack_dump(
 			dumpable |= FWTS_OOPS_GOT_OOPS;
 		if (strstr(line, "WARNING: at"))
 			dumpable |= FWTS_OOPS_GOT_WARN_ON;
+		if (strstr(line, "WARNING: CPU:"))
+			dumpable |= FWTS_OOPS_GOT_WARN_ON;
 		if (strstr(line, "Call Trace:"))
 			dumpable |= FWTS_OOPS_GOT_CALL_TRACE;
 		if (strstr(line, "--[ end trace")) {