<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/10489">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c">File src/host/trxcon/sched_clck.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/10489/1/src/host/trxcon/sched_clck.c@75">Patch Set #1, Line 75:</a> <code style="font-family:monospace,monospace">                      "elapsed uS %" PRIu64 "\n", elapsed_us);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Better cast "(uint64_t) elapsed_us", iirc I saw sometimes compilers printing warnings checking the printf format vs types passed as arguments.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c@85">Patch Set #1, Line 85:</a> <code style="font-family:monospace,monospace">            timespecadd(tv_clock, &frame_duration, &next);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">No need to use next here, you can do: timespecadd(tv_clock, &frame_duration, tv_clock);</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c@86">Patch Set #1, Line 86:</a> <code style="font-family:monospace,monospace">               *tv_clock = next;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">As a result this line can be dropped, as well as the declaration of the var.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c@98">Patch Set #1, Line 98:</a> <code style="font-family:monospace,monospace">           FRAME_DURATION_uS - elapsed_us);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not related to this changeset, but wondering if this value makes sense?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c@163">Patch Set #1, Line 163:</a> <code style="font-family:monospace,monospace">       LOGP(DSCH, LOGL_INFO, "GSM clock jitter: %" PRIu64 "\n",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">That should be PRId64, it can be negative.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/10489/1/src/host/trxcon/sched_clck.c@175">Patch Set #1, Line 175:</a> <code style="font-family:monospace,monospace">                timespecadd(&tv_now, &duration, &next);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">timespecadd(&tv_now, &duration, &tv_clock);</p><p style="white-space: pre-wrap; word-wrap: break-word;">then you can drop next and line below this one.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/10489">change 10489</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/10489"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ic93f90685c6d6dc28dfc4ad48c998e0eac113cf8 </div>
<div style="display:none"> Gerrit-Change-Number: 10489 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 17 Aug 2018 13:06:17 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>