[PATCH] lib: fwts_oops: fix the WARN_ON warnings in kernel not found

Ivan Hu ivan.hu at canonical.com
Mon Jun 5 03:49:18 UTC 2023


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 at canonical.com>
---
 src/lib/src/fwts_oops.c | 2 ++
 1 file changed, 2 insertions(+)

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")) {
-- 
2.34.1




More information about the fwts-devel mailing list