diff options
author | Julius Werner <jwerner@chromium.org> | 2017-06-12 17:35:15 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2017-06-14 02:17:14 +0200 |
commit | be3aa04f217cef8e0d6a19a40e9b2a0e6788be4d (patch) | |
tree | 96d8c3814289dbc3b7b1c6d8f8722f33b494171a | |
parent | ef08545bff67c8b264e168117c39100566f26bfd (diff) |
cbmem: Escape literal asterisks in log banner regex
I had a stupid. :( Asterisks have a special meaning in regexes, but I
just wanted to match three literal ones. This kills the regex parser.
Change-Id: Ia6149e72715d651c914583ed3235680ce5b7a2e0
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/20171
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
-rw-r--r-- | util/cbmem/cbmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index daa7b566ca..4c1fa0e0d9 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -670,7 +670,7 @@ static void dump_console(int one_boot_only) cursor = 0; if (one_boot_only) { #define BANNER_REGEX(stage) "\n\ncoreboot-[^\n]* " stage " starting\\.\\.\\.\n" -#define OVERFLOW_REGEX(stage) "\n*** Pre-CBMEM " stage " console overflowed" +#define OVERFLOW_REGEX(stage) "\n\\*\\*\\* Pre-CBMEM " stage " console overflow" const char *regex[] = { BANNER_REGEX("bootblock"), BANNER_REGEX("romstage"), OVERFLOW_REGEX("romstage"), |