From eae3199e4adc0e92a65f48293b1369c1d8c375bc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 22 Feb 2010 17:49:32 +0100 Subject: Kerneloops: be more specific looking for "WARNING:" string Signed-off-by: Denys Vlasenko --- lib/Plugins/KerneloopsSysLog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Plugins/KerneloopsSysLog.cpp') diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp index 646ea521..e6de84aa 100644 --- a/lib/Plugins/KerneloopsSysLog.cpp +++ b/lib/Plugins/KerneloopsSysLog.cpp @@ -314,10 +314,10 @@ next_line: /* single oopses are of the same loglevel */ else if (lines_info[i].level != prevlevel) oopsend = i-1; - else if (strstr(curline, "Instruction dump::")) /* why "::"? is it a typo? */ + else if (strstr(curline, "Instruction dump:")) oopsend = i; /* if a new oops starts, this one has ended */ - else if (strstr(curline, "WARNING:") && oopsstart != i) + else if (strstr(curline, "WARNING: at ") && oopsstart != i) /* WARN_ON() generated messages */ oopsend = i-1; else if (strstr(curline, "Unable to handle") && oopsstart != i) oopsend = i-1; -- cgit