Change in osmo-hlr[master]: hlr_ussd.c: fix: properly print a EUSE / IUSE name

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Aug 2 17:42:44 UTC 2018


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/10322


Change subject: hlr_ussd.c: fix: properly print a EUSE / IUSE name
......................................................................

hlr_ussd.c: fix: properly print a EUSE / IUSE name

We need to distinguish between both EUSE and IUSE, and properly
print their names. Otherwise, garbage is printed in case of IUSE.

Change-Id: I497e7c1fe41279afdb1256ee69e166066a6462bb
---
M src/hlr_ussd.c
1 file changed, 4 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/22/10322/1

diff --git a/src/hlr_ussd.c b/src/hlr_ussd.c
index f9399d2..7b981bb 100644
--- a/src/hlr_ussd.c
+++ b/src/hlr_ussd.c
@@ -126,8 +126,10 @@
 	struct hlr_ussd_route *rt;
 	llist_for_each_entry(rt, &hlr->ussd_routes, list) {
 		if (!strncmp(ussd_code, rt->prefix, strlen(rt->prefix))) {
-			LOGP(DSS, LOGL_DEBUG, "Found EUSE %s (prefix %s) for USSD Code '%s'\n",
-				rt->u.euse->name, rt->prefix, ussd_code);
+			LOGP(DSS, LOGL_DEBUG, "Found %s '%s' (prefix '%s') for USSD "
+				"Code '%s'\n", rt->is_external ? "EUSE" : "IUSE",
+				rt->is_external ? rt->u.euse->name : rt->u.iuse->name,
+				rt->prefix, ussd_code);
 			return rt;
 		}
 	}

-- 
To view, visit https://gerrit.osmocom.org/10322
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I497e7c1fe41279afdb1256ee69e166066a6462bb
Gerrit-Change-Number: 10322
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180802/70de15d5/attachment.htm>


More information about the gerrit-log mailing list