<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23800">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/cbmem: Re-order regex for "cbmem -1"<br><br>In case of console dump for only the last boot, cbmem utility checks<br>for a list of regex in provided order. When pre-cbmem console<br>overflows, "Pre-CBMEM <stage> console overflowed.. " message is added<br>before "... <stage> starting" message. This change fixes the order of<br>regex in cbmem utility to match this.<br><br>Test=Verified on soraka that "cbmem -1" correctly dumps the data<br>starting from Pre-CBMEM romstage overflowed.<br><br>Change-Id: I9c5667bbd02ed3e93ac77a4f42e87d754a062919<br>Signed-off-by: Furquan Shaikh <furquan@chromium.org><br>---<br>M util/cbmem/cbmem.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/23800/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c</span><br><span>index 09957ba..eae5da3 100644</span><br><span>--- a/util/cbmem/cbmem.c</span><br><span>+++ b/util/cbmem/cbmem.c</span><br><span>@@ -727,10 +727,10 @@</span><br><span> #define BANNER_REGEX(stage) "\n\ncoreboot-[^\n]* " stage " starting\\.\\.\\.\n"</span><br><span> #define OVERFLOW_REGEX(stage) "\n\\*\\*\\* Pre-CBMEM " stage " console overflow"</span><br><span>               const char *regex[] = { BANNER_REGEX("bootblock"),</span><br><span style="color: hsl(0, 100%, 40%);">-                                    BANNER_REGEX("romstage"),</span><br><span>                                  OVERFLOW_REGEX("romstage"),</span><br><span style="color: hsl(0, 100%, 40%);">-                                   BANNER_REGEX("ramstage"),</span><br><span style="color: hsl(0, 100%, 40%);">-                                     OVERFLOW_REGEX("ramstage") };</span><br><span style="color: hsl(120, 100%, 40%);">+                                       BANNER_REGEX("romstage"),</span><br><span style="color: hsl(120, 100%, 40%);">+                                   OVERFLOW_REGEX("ramstage"),</span><br><span style="color: hsl(120, 100%, 40%);">+                                 BANNER_REGEX("ramstage") };</span><br><span>                int i;</span><br><span> </span><br><span>           for (i = 0; !cursor && i < ARRAY_SIZE(regex); i++) {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23800">change 23800</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/23800"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9c5667bbd02ed3e93ac77a4f42e87d754a062919 </div>
<div style="display:none"> Gerrit-Change-Number: 23800 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>