<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10064">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">scripts/verify_log_statements.py: strip OSMO_STRINGIFY()<br><br>Change-Id: I439ee65cd65cf42e1005ca71aa7d4b680b18c0e5<br>---<br>M scripts/verify_log_statements.py<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/64/10064/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/verify_log_statements.py b/scripts/verify_log_statements.py</span><br><span>index 6108c23..567a96a 100755</span><br><span>--- a/scripts/verify_log_statements.py</span><br><span>+++ b/scripts/verify_log_statements.py</span><br><span>@@ -21,6 +21,7 @@</span><br><span> log_statement_re = re.compile(r'^[ \t]*LOG[_A-Z]+\(([^";,]*,)*[ \t\r\n]*(("[^"]*"[^";,]*)*)(,[^;]*|)\);',</span><br><span>                               re.MULTILINE | re.DOTALL)</span><br><span> fmt_re = re.compile(r'("[^"]*".*)*fmt')</span><br><span style="color: hsl(120, 100%, 40%);">+osmo_stringify_re = re.compile("OSMO_STRINGIFY[_A-Z]*\([^)]*\)")</span><br><span> </span><br><span> debug = ('-d' in sys.argv) or ('--debug' in sys.argv)</span><br><span> </span><br><span>@@ -79,6 +80,7 @@</span><br><span>     for n in (16,32,64):</span><br><span>       quoted = quoted.replace('PRIu' + str(n), '')</span><br><span>       quoted = quoted.replace('PRId' + str(n), '')</span><br><span style="color: hsl(120, 100%, 40%);">+    quoted = ''.join(osmo_stringify_re.split(quoted))</span><br><span> </span><br><span>     # Use py eval to join separate string constants: drop any tabs/newlines</span><br><span>     # that are not in quotes, between separate string constants.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10064">change 10064</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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://gerrit.osmocom.org/10064"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I439ee65cd65cf42e1005ca71aa7d4b680b18c0e5 </div>
<div style="display:none"> Gerrit-Change-Number: 10064 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>