<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10322">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr_ussd.c: fix: properly print a EUSE / IUSE name<br><br>We need to distinguish between both EUSE and IUSE, and properly<br>print their names. Otherwise, garbage is printed in case of IUSE.<br><br>Change-Id: I497e7c1fe41279afdb1256ee69e166066a6462bb<br>---<br>M src/hlr_ussd.c<br>1 file changed, 4 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/22/10322/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr_ussd.c b/src/hlr_ussd.c</span><br><span>index f9399d2..7b981bb 100644</span><br><span>--- a/src/hlr_ussd.c</span><br><span>+++ b/src/hlr_ussd.c</span><br><span>@@ -126,8 +126,10 @@</span><br><span>   struct hlr_ussd_route *rt;</span><br><span>   llist_for_each_entry(rt, &hlr->ussd_routes, list) {</span><br><span>           if (!strncmp(ussd_code, rt->prefix, strlen(rt->prefix))) {</span><br><span style="color: hsl(0, 100%, 40%);">-                        LOGP(DSS, LOGL_DEBUG, "Found EUSE %s (prefix %s) for USSD Code '%s'\n",</span><br><span style="color: hsl(0, 100%, 40%);">-                               rt->u.euse->name, rt->prefix, ussd_code);</span><br><span style="color: hsl(120, 100%, 40%);">+                    LOGP(DSS, LOGL_DEBUG, "Found %s '%s' (prefix '%s') for USSD "</span><br><span style="color: hsl(120, 100%, 40%);">+                               "Code '%s'\n", rt->is_external ? "EUSE" : "IUSE",</span><br><span style="color: hsl(120, 100%, 40%);">+                            rt->is_external ? rt->u.euse->name : rt->u.iuse->name,</span><br><span style="color: hsl(120, 100%, 40%);">+                         rt->prefix, ussd_code);</span><br><span>                   return rt;</span><br><span>           }</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10322">change 10322</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/10322"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I497e7c1fe41279afdb1256ee69e166066a6462bb </div>
<div style="display:none"> Gerrit-Change-Number: 10322 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>