<p><a href="https://gerrit.osmocom.org/14196">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap.py">File utils/gsmtap.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap.py@64">Patch Set #1, Line 64:</a> <code style="font-family:monospace,monospace">        packformat = '!II16sIB3xxx16s32sI'</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">That's actually headerformat and headerlen. Please change names of variables otherwise it's confusing.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap_logread.py">File utils/gsmtap_logread.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap_logread.py@3">Patch Set #1, Line 3:</a> <code style="font-family:monospace,monospace"># license: MIT</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">do we want it to be MIT?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap_logread.py@40">Patch Set #1, Line 40:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You can drop this empty line.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap_logread.py@61">Patch Set #1, Line 61:</a> <code style="font-family:monospace,monospace">    names = {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is constant yet python probably builds up the dictionary every time you call the function. May be worth moving it outside as static.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14196/1/utils/gsmtap_logread.py@68">Patch Set #1, Line 68:</a> <code style="font-family:monospace,monospace">    if level in names:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think you can replace these 3 lines with: return names.get(level, "UNKNOWN")</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/14196">change 14196</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/14196"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I24478d8e16066c6118e867bdba54c6418c15e170 </div>
<div style="display:none"> Gerrit-Change-Number: 14196 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 27 May 2019 08:43:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>