aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-22 04:04:22 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-22 06:26:48 +0100
commitf3652e6c5c169c47cdc8b3883309cf477d245860 (patch)
tree95777ca2e8d13b49aff142dbd6464f918c8d9f9c
parentaec91ab3477529e386fc548a2fcb55ff405bd949 (diff)
hnb-test: log accurate three-digit MNC with leading zeros
-rw-r--r--src/tests/hnb-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 32f4ba8..4687d34 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -268,9 +268,10 @@ int hnb_test_nas_rx_lu_accept(struct gsm48_hdr *gh, int len, int *sent_tmsi)
lai = (struct gsm48_loc_area_id *)&gh->data[0];
uint16_t mcc, mnc, lac;
- gsm48_decode_lai(lai, &mcc, &mnc, &lac);
- printf("LU: mcc %hd mnc %hd lac %hd\n",
- mcc, mnc, lac);
+ bool mnc_3_digits;
+ gsm48_decode_lai2(lai, &mcc, &mnc, &mnc_3_digits, &lac);
+ printf("LU: mcc %s mnc %s lac %hd\n",
+ osmo_mcc_name(mcc), osmo_mnc_name(mnc, mnc_3_digits), lac);
struct tlv_parsed tp;
int parse_res;