<p><a href="https://gerrit.osmocom.org/10489">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/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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Better cast "(uint64_t) elapsed_us", iirc I saw sometimes compilers printing warnings checking the p […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">It's the format specifier which is wrong here. Fixed in next patch set.</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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">No need to use next here, you can do: timespecadd(tv_clock, &frame_duration, tv_clock);</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I just refrained from passing the same value twice because timespecadd() is a macro.<br>But doing so is safe in this case, indeed.</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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Not related to this changeset, but wondering if this value makes sense?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Hmm. It does look weird since the scheduling time offset could be negative, right?</p><p style="white-space: pre-wrap; word-wrap: break-word;">But maybe this is being done on purpose. There's a similar case in sched_clck_handle().</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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">That should be PRId64, it can be negative.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Yes, thanks. All these are leftovers from a bad signed->unsigned move I mistakenly came up with while writing this patch.</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-Reviewer: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 17 Aug 2018 13:31:57 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>