<p>Naresh Solanki has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27170">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/lint/checkpatch_json: Fix match string<br><br>Look for keyword 'ERROR:' , 'WARNING:' & 'FILE:' instead of the same without<br>colon(:).<br><br>Change-Id: Ib690ab34a1ffabc4f83642634fd34beea16a64dc<br>Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com><br>---<br>M util/lint/checkpatch_json.py<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/70/27170/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py</span><br><span>index 3254aae..fe2766f 100755</span><br><span>--- a/util/lint/checkpatch_json.py</span><br><span>+++ b/util/lint/checkpatch_json.py</span><br><span>@@ -38,11 +38,11 @@</span><br><span> def parse_file(input_file):</span><br><span>     fp = open (input_file, "r")</span><br><span>     for line in fp:</span><br><span style="color: hsl(0, 100%, 40%);">-        if "ERROR" in line:</span><br><span style="color: hsl(120, 100%, 40%);">+        if "ERROR:" in line:</span><br><span>             msg_output = line.split("ERROR:")[1].strip()</span><br><span style="color: hsl(0, 100%, 40%);">-        elif "WARNING" in line:</span><br><span style="color: hsl(120, 100%, 40%);">+        elif "WARNING:" in line:</span><br><span>             msg_output = line.split("WARNING:")[1].strip()</span><br><span style="color: hsl(0, 100%, 40%);">-        elif "FILE" in line:</span><br><span style="color: hsl(120, 100%, 40%);">+        elif "FILE:" in line:</span><br><span>             temp = line.split("FILE:")</span><br><span>             file_path = temp[1].split(":")[0]</span><br><span>             line_number = temp[1].split(":")[1]</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27170">change 27170</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/27170"/><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: Ib690ab34a1ffabc4f83642634fd34beea16a64dc </div>
<div style="display:none"> Gerrit-Change-Number: 27170 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Naresh Solanki <naresh.solanki@intel.com> </div>