summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-05-05 13:24:03 +0200
committerMax <msuraev@sysmocom.de>2017-05-05 11:31:07 +0000
commit7b5dbc280510b6ad74d08b71bcf387b0f970a0bd (patch)
treec32607aa45076383614526875fe7c04e56af4aa4
parentc6e8a01e706ac95561888e03e15e891884aa7d68 (diff)
Gb: use textual representation for parse log
Use textual representation for message type and protocol descriminator in case of Gb parsing errors. Change-Id: Ida925258be119619d8705361730c554a130b75bc Related: SYS#3610
-rw-r--r--openbsc/src/gprs/gprs_gb_parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_gb_parse.c b/openbsc/src/gprs/gprs_gb_parse.c
index 9befa3958..d5a122bda 100644
--- a/openbsc/src/gprs/gprs_gb_parse.c
+++ b/openbsc/src/gprs/gprs_gb_parse.c
@@ -380,9 +380,8 @@ int gprs_gb_parse_dtap(uint8_t *data, size_t data_len,
default:
LOGP(DLLC, LOGL_NOTICE,
- "Unknown GSM 04.08 message type 0x%02hhx for protocol"
- " discriminator 0x%02hhx.\n",
- msg_type, pdisc);
+ "Unhandled GSM 04.08 message type %s for protocol discriminator %s.\n",
+ get_value_string(gprs_msgt_gmm_names, msg_type), get_value_string(gsm48_pdisc_names, pdisc));
break;
};