<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stat_item.c">File src/stat_item.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/libosmocore/+/23508/1/src/stat_item.c@279">Patch Set #1, Line 279:</a> <code style="font-family:monospace,monospace">     LOGP(DLSTATS, LOGL_DEBUG, "osmo_stat_item_discard_all is deprecated");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">INFO?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stat_item.c@280">Patch Set #1, Line 280:</a> <code style="font-family:monospace,monospace">  return 0;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You may want to call osmo_stats_discard_all() internally here?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stats.c">File src/stats.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/libosmocore/+/23508/1/src/stats.c@715">Patch Set #1, Line 715:</a> <code style="font-family:monospace,monospace">  if (!have_value) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You can drop have_value (which is not an int anymore btw):<br>if (osmo_stat_item_get_next(item, &item->stats_next_id, &value) <= 0)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23508">change 23508</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/libosmocore/+/23508"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie65dcdf52c8fc3d916e20d7f0455f6223be6b64f </div>
<div style="display:none"> Gerrit-Change-Number: 23508 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 29 Mar 2021 08:32:58 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>