aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-02-16 12:25:22 +0100
committerMax <msuraev@sysmocom.de>2017-02-16 12:26:43 +0100
commitaa0fefd5d6a356ecde57a8e81c5d7e291765ff55 (patch)
treea531cb4a8e8fa6bbdeb4ea546712ba0d0e38b7ae
parent27c6b9016a511b8b66810808ee2282f11b3320a9 (diff)
Use strings for GSUP message type
-rw-r--r--src/hlr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 206ddc1..6420cc5 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -510,8 +510,9 @@ static int read_cb(struct osmo_gsup_conn *conn, struct msgb *msg)
{
struct lu_operation *luop = lu_op_by_imsi(gsup.imsi);
if (!luop) {
- LOGP(DMAIN, LOGL_ERROR, "GSUP message %u for "
- "unknown IMSI %s\n", gsup.message_type,
+ LOGP(DMAIN, LOGL_ERROR, "GSUP message %s for "
+ "unknown IMSI %s\n",
+ osmo_gsup_message_type_name(gsup.message_type),
gsup.imsi);
break;
}
@@ -519,8 +520,8 @@ static int read_cb(struct osmo_gsup_conn *conn, struct msgb *msg)
}
break;
default:
- LOGP(DMAIN, LOGL_DEBUG, "Unhandled GSUP message type %u\n",
- gsup.message_type);
+ LOGP(DMAIN, LOGL_DEBUG, "Unhandled GSUP message type %s\n",
+ osmo_gsup_message_type_name(gsup.message_type));
break;
}
msgb_free(msg);