<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/18507">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/18507/1//COMMIT_MSG">Commit Message:</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/libosmocore/+/18507/1//COMMIT_MSG@27">Patch Set #1, Line 27:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm48_mi_to_string() decodes a TMSI as a decimal number. These days we use<br>  hexadecimal TMSI everywhere.<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">we could simply change the implementation to generate a hex string instead of a decimal number in the output string.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/18507/1//COMMIT_MSG@32">Patch Set #1, Line 32:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-bsc's extract_sub() first uses gsm48_mi_to_string() which encodes the<br>  raw uint32_t TMSI to a string, and then calls strtoul() via<br>  tmsi_from_string() to code those back to a raw uint32_t.<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">that's of course ugly and should be changed.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/18507/1//COMMIT_MSG@44">Patch Set #1, Line 44:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">which<br>might subsequently replace older code dup.<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think if we don'd to this right now after merging this code, the duplication will stay.  So if we agree this new decoder is what we want, I would like to request conversion of the existing users (I guess directly the users/applications, while marking the old library code as DEPRECATED?)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/18507">change 18507</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/c/libosmocore/+/18507"/><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-Change-Id: Ic3f969e739654c1e8c387aedeeba5cce07fe2307 </div>
<div style="display:none"> Gerrit-Change-Number: 18507 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 27 May 2020 08:26:00 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>