<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/24553">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: I064aae995975a379425d5f21221fa48efc6d05f9<br>---<br>M src/input/dahdi.c<br>1 file changed, 5 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/53/24553/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/input/dahdi.c b/src/input/dahdi.c</span><br><span>index cdaa8eb..6dee0d7 100644</span><br><span>--- a/src/input/dahdi.c</span><br><span>+++ b/src/input/dahdi.c</span><br><span>@@ -146,23 +146,23 @@</span><br><span>       case DAHDI_EVENT_ALARM:</span><br><span>              /* we should notify the code that the line is gone */</span><br><span>                osmo_signal_dispatch(SS_L_INPUT, S_L_INP_LINE_ALARM, &isd);</span><br><span style="color: hsl(0, 100%, 40%);">-         rate_ctr_inc(&line->rate_ctr->ctr[E1I_CTR_ALARM]);</span><br><span style="color: hsl(120, 100%, 40%);">+          rate_ctr_inc(rate_ctr_group_get_ctr(line->rate_ctr, E1I_CTR_ALARM));</span><br><span>              break;</span><br><span>       case DAHDI_EVENT_NOALARM:</span><br><span>            /* alarm has gone, we should re-start the SABM requests */</span><br><span>           osmo_signal_dispatch(SS_L_INPUT, S_L_INP_LINE_NOALARM, &isd);</span><br><span>            break;</span><br><span>       case DAHDI_EVENT_ABORT:</span><br><span style="color: hsl(0, 100%, 40%);">-         rate_ctr_inc(&line->rate_ctr->ctr[E1I_CTR_HDLC_ABORT]);</span><br><span style="color: hsl(120, 100%, 40%);">+             rate_ctr_inc(rate_ctr_group_get_ctr(line->rate_ctr, E1I_CTR_HDLC_ABORT));</span><br><span>                 break;</span><br><span>       case DAHDI_EVENT_OVERRUN:</span><br><span style="color: hsl(0, 100%, 40%);">-               rate_ctr_inc(&line->rate_ctr->ctr[E1I_CTR_HDLC_OVERR]);</span><br><span style="color: hsl(120, 100%, 40%);">+             rate_ctr_inc(rate_ctr_group_get_ctr(line->rate_ctr, E1I_CTR_HDLC_OVERR));</span><br><span>                 break;</span><br><span>       case DAHDI_EVENT_BADFCS:</span><br><span style="color: hsl(0, 100%, 40%);">-                rate_ctr_inc(&line->rate_ctr->ctr[E1I_CTR_HDLC_BADFCS]);</span><br><span style="color: hsl(120, 100%, 40%);">+            rate_ctr_inc(rate_ctr_group_get_ctr(line->rate_ctr, E1I_CTR_HDLC_BADFCS));</span><br><span>                break;</span><br><span>       case DAHDI_EVENT_REMOVED:</span><br><span style="color: hsl(0, 100%, 40%);">-               rate_ctr_inc(&line->rate_ctr->ctr[E1I_CTR_REMOVED]);</span><br><span style="color: hsl(120, 100%, 40%);">+                rate_ctr_inc(rate_ctr_group_get_ctr(line->rate_ctr, E1I_CTR_REMOVED));</span><br><span>            break;</span><br><span>       }</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/24553">change 24553</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/libosmo-abis/+/24553"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I064aae995975a379425d5f21221fa48efc6d05f9 </div>
<div style="display:none"> Gerrit-Change-Number: 24553 </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>