summaryrefslogtreecommitdiff
path: root/util/cbmem
diff options
context:
space:
mode:
authorYou-Cheng Syu <youcheng@google.com>2019-07-01 16:40:25 +0800
committerJulius Werner <jwerner@chromium.org>2019-07-01 21:21:57 +0000
commit1430b3995f796de0daeaaf95c31dc086f5f2d5ac (patch)
tree54deb9e734548c96f2588c6d176081d45def011b /util/cbmem
parent02b1e20f005007685a71945e86b701bb2e5b79f0 (diff)
util/cbmem: Update banner string regular expression
Banner string format has been changed (CB:30935). We should update our regular expression correspondingly. Also add "verstage" into the stage search list since some boards (e.g., Kukui) might start console initialization at verstage. Change-Id: I16eba3ac5e203e80b0bfd42a4294401dbccd4463 Signed-off-by: You-Cheng Syu <youcheng@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33779 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbmem')
-rw-r--r--util/cbmem/cbmem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c
index 52fdc9b81f..9d2a64349c 100644
--- a/util/cbmem/cbmem.c
+++ b/util/cbmem/cbmem.c
@@ -797,9 +797,11 @@ static void dump_console(int one_boot_only)
a banner, store the last match for that stage in cursor and stop. */
cursor = 0;
if (one_boot_only) {
-#define BANNER_REGEX(stage) "\n\ncoreboot-[^\n]* " stage " starting\\.\\.\\.\n"
+#define BANNER_REGEX(stage) \
+ "\n\ncoreboot-[^\n]* " stage " starting.*\\.\\.\\.\n"
#define OVERFLOW_REGEX(stage) "\n\\*\\*\\* Pre-CBMEM " stage " console overflow"
const char *regex[] = { BANNER_REGEX("bootblock"),
+ BANNER_REGEX("verstage"),
OVERFLOW_REGEX("romstage"),
BANNER_REGEX("romstage"),
OVERFLOW_REGEX("ramstage"),