[MERGED] osmo-hlr[master]: Log error cause as a string

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Feb 13 22:08:25 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Log error cause as a string
......................................................................


Log error cause as a string

Use gsm48_gmm_cause_names to log error cause instead of numerical code.

Change-Id: I846d488ed163e137164976738e55674f0eaee190
---
M src/hlr.c
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/hlr.c b/src/hlr.c
index cfd86cc..2fa27c3 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -186,8 +186,9 @@
 {
 	struct osmo_gsup_message gsup;
 
-	DEBUGP(DMAIN, "%s: LU OP Tx Error (cause=%u)\n",
-		luop->subscr.imsi, cause);
+	DEBUGP(DMAIN, "%s: LU OP Tx Error (cause %s)\n",
+	       luop->subscr.imsi, get_value_string(gsm48_gmm_cause_names,
+						   cause));
 
 	memset(&gsup, 0, sizeof(gsup));
 	gsup.message_type = OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR;

-- 
To view, visit https://gerrit.osmocom.org/1813
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I846d488ed163e137164976738e55674f0eaee190
Gerrit-PatchSet: 1
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list