<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/11654">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11654/1/src/osmo-bsc/paging.c">File src/osmo-bsc/paging.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/11654/1/src/osmo-bsc/paging.c@300">Patch Set #1, Line 300:</a> <code style="font-family:monospace,monospace">         return d->val;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">what if the user wants a fixed value == the default val? maybe a vty option like 'dynamic-T3113' / 'no dynamic-T3113' would be better</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11654/1/src/osmo-bsc/paging.c@312">Patch Set #1, Line 312:</a> <code style="font-family:monospace,monospace">       to = (to_us + 999999) / 1000000 + d->default_val;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">maybe using user supplied d->val would be better?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11654/1/src/osmo-bsc/paging.c@313">Patch Set #1, Line 313:</a> <code style="font-family:monospace,monospace">     LOGP(DPAG, LOGL_DEBUG, "(bts=%d) Paging request calculated T3113 expires in %u seconds\n",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">sprinkle colons: "Paging request: calculated T3113: expires in %u seconds"</p><p style="white-space: pre-wrap; word-wrap: break-word;">(if you agree with above vty config option, maybe s/calculated/dynamic)</p><p style="white-space: pre-wrap; word-wrap: break-word;">Actually, I would rather log that below, where the timer actually gets fired.<br>It's a common pattern of utility functions like this, maybe they get used for just quickly taking a look or somesuch, and then they log as if it was the real thing.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11654/1/src/osmo-bsc/paging.c@348">Patch Set #1, Line 348:</a> <code style="font-family:monospace,monospace"> int t3113_timeout_s = calculate_timer_3113(bts);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I know, but in our coding style we declare vars at top. I'd drop that rule, but here we are.</p><p style="white-space: pre-wrap; word-wrap: break-word;">(rather stick to unsigned int? Or instead int above? well whatever)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11654">change 11654</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/11654"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I4fb2969b690151415038631fb6ad059aa6835c7f </div>
<div style="display:none"> Gerrit-Change-Number: 11654 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 08 Nov 2018 17:29:17 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>