<p>fixeria <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17091">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">csn1: fix csnStreamDecoder(): avoid conditional calls to bitvec_read_field()<br><br>As was discovered by pespin, changing logging level of DCSN1 makes<br>the CSN.1 decoder behave differently (see OS#4375). In particular,<br>this makes RLCMACTest (encode / decode test) fail.<br><br>I did a quick investigation and noticed that some of the logging<br>statements call bitvec_read_field(). By definition this function<br>moves the internal pointer (current bit position) of a given<br>vector and increments readIndex by a given amount of bits.<br><br>The problem is that LOGPC would not evaluate its format string if<br>the logging message is not going to be printed, e.g. if a given<br>logging level is lower than the current one, or in case if<br>logging is not enabled at all.<br><br>The first two conditional calls to bitvec_read_field() are related<br>to CSN_PADDING_BITS, so that's not critical because padding is<br>always in the end of messages. The later two are related to<br>CSN_RECURSIVE_ARRAY and CSN_RECURSIVE_TARRAY respectively.<br><br>Let's use bitvec_get_uint() instead to keep readIndex unchanged.<br><br>Change-Id: Ia331048db9f790ca407fd341ced01df12d10a233<br>Fixes: OS#4375<br>---<br>M src/csn1.cpp<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/91/17091/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17091">change 17091</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/osmo-pcu/+/17091"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia331048db9f790ca407fd341ced01df12d10a233 </div>
<div style="display:none"> Gerrit-Change-Number: 17091 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>