<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-smlc/+/24560">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Use new stat item/ctr getter APIs<br><br>Generated with spatch:<br>"""<br>@@<br>expression E1, E2;<br>@@<br>- &E2->ctr[E1]<br>+ rate_ctr_group_get_ctr(E2, E1)<br>"""<br><br>Change-Id: I594c08b8fe0ed54a31353d8c6c911cc7293ae7c0<br>---<br>M src/osmo-smlc/sccp_lb_inst.c<br>M src/osmo-smlc/smlc_loc_req.c<br>2 files changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-smlc refs/changes/60/24560/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-smlc/sccp_lb_inst.c b/src/osmo-smlc/sccp_lb_inst.c</span><br><span>index 5a5c5e9..1e325f5 100644</span><br><span>--- a/src/osmo-smlc/sccp_lb_inst.c</span><br><span>+++ b/src/osmo-smlc/sccp_lb_inst.c</span><br><span>@@ -186,14 +186,14 @@</span><br><span> {</span><br><span>        int rc;</span><br><span>      if (!sli->scu) {</span><br><span style="color: hsl(0, 100%, 40%);">-             rate_ctr_inc(&g_smlc->ctrs->ctr[SMLC_CTR_BSSMAP_LE_TX_ERR_CONN_NOT_READY]);</span><br><span style="color: hsl(120, 100%, 40%);">+         rate_ctr_inc(rate_ctr_group_get_ctr(g_smlc->ctrs, SMLC_CTR_BSSMAP_LE_TX_ERR_CONN_NOT_READY));</span><br><span>             return -EIO;</span><br><span>         }</span><br><span>    rc = osmo_sccp_user_sap_down_nofree(sli->scu, oph);</span><br><span>       if (rc >= 0)</span><br><span style="color: hsl(0, 100%, 40%);">-         rate_ctr_inc(&g_smlc->ctrs->ctr[SMLC_CTR_BSSMAP_LE_TX_SUCCESS]);</span><br><span style="color: hsl(120, 100%, 40%);">+            rate_ctr_inc(rate_ctr_group_get_ctr(g_smlc->ctrs, SMLC_CTR_BSSMAP_LE_TX_SUCCESS));</span><br><span>        else</span><br><span style="color: hsl(0, 100%, 40%);">-            rate_ctr_inc(&g_smlc->ctrs->ctr[SMLC_CTR_BSSMAP_LE_TX_ERR_SEND]);</span><br><span style="color: hsl(120, 100%, 40%);">+           rate_ctr_inc(rate_ctr_group_get_ctr(g_smlc->ctrs, SMLC_CTR_BSSMAP_LE_TX_ERR_SEND));</span><br><span>       return rc;</span><br><span> }</span><br><span> </span><br><span>diff --git a/src/osmo-smlc/smlc_loc_req.c b/src/osmo-smlc/smlc_loc_req.c</span><br><span>index 1365bfa..392e247 100644</span><br><span>--- a/src/osmo-smlc/smlc_loc_req.c</span><br><span>+++ b/src/osmo-smlc/smlc_loc_req.c</span><br><span>@@ -96,7 +96,7 @@</span><br><span> {</span><br><span>    struct smlc_loc_req *smlc_loc_req;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  rate_ctr_inc(&g_smlc->ctrs->ctr[SMLC_CTR_BSSMAP_LE_RX_DT1_PERFORM_LOCATION_REQUEST]);</span><br><span style="color: hsl(120, 100%, 40%);">+       rate_ctr_inc(rate_ctr_group_get_ctr(g_smlc->ctrs, SMLC_CTR_BSSMAP_LE_RX_DT1_PERFORM_LOCATION_REQUEST));</span><br><span> </span><br><span>       if (lb_conn->smlc_loc_req) {</span><br><span>              /* Another request is already pending. If we send Perform Location Abort, the peer doesn't know which</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-smlc/+/24560">change 24560</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-smlc/+/24560"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-smlc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I594c08b8fe0ed54a31353d8c6c911cc7293ae7c0 </div>
<div style="display:none"> Gerrit-Change-Number: 24560 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>