<p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/23833">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/23833/7/src/osmo-bts-trx/trx_if.c">File src/osmo-bts-trx/trx_if.c:</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/osmo-bts/+/23833/7/src/osmo-bts-trx/trx_if.c@987">Patch Set #7, Line 987:</a> <code style="font-family:monospace,monospace">loop:</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I prefer to use 'goto' here to avoid wrapping large code blocks into { }, and see no problem with us […]</blockquote></p><ul><li>the indent level here is not deep at all</li><li>the length of the function is the same whether you use a proper loop or a goto</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">So by all means I am with pespin here.  If you think the code is somehow not reaable enough, then it should be split into smaller functions...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/23833/7/src/osmo-bts-trx/trx_if.c@1114">Patch Set #7, Line 1114:</a> <code style="font-family:monospace,monospace">    LOGPPHI(l1h->phy_inst, DTRX, LOGL_DEBUG,</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I am just moving the existing log line, not introducing a new one. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I agree it should not be changed if this code just moves it around.</p><p style="white-space: pre-wrap; word-wrap: break-word;">However, I do think there's little point in logging every TRXDF datagram just before a syscall.  There's strace for such debugging, or of course, pcap/wireshark/tcpdump.</p><p style="white-space: pre-wrap; word-wrap: break-word;">For TRXD you will be overwhelmed by the amount of logging anyway in this situation.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So I think it should be removed in a separate patch, but I'm not saying fixeria has to do that just because he works with this code...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/23833">change 23833</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-bts/+/23833"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3532a6693bb335043ec390049138308991083e66 </div>
<div style="display:none"> Gerrit-Change-Number: 23833 </div>
<div style="display:none"> Gerrit-PatchSet: 7 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@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-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 30 Apr 2021 16:19:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>