aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-22 04:04:22 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-28 19:26:07 +0100
commit3050864b7360cc7a168a850f7a1d839a805c54a9 (patch)
tree8675ede78b1c7b0d565d6886964e5faa40200dd7 /src
parentc964a2cfa1b08e5bbda5d721a7a0095d26b53791 (diff)
hnb-test: log accurate three-digit MNC with leading zeros
Diffstat (limited to 'src')
-rw-r--r--src/tests/hnb-test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 32f4ba8..446a14a 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -267,10 +267,11 @@ 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);
+ struct osmo_location_area_id laid;
+ gsm48_decode_lai2(lai, &laid);
+ printf("LU: mcc %s mnc %s lac %hd\n",
+ osmo_mcc_name(laid.plmn.mcc), osmo_mnc_name(laid.plmn.mnc, laid.plmn.mnc_3_digits),
+ laid.lac);
struct tlv_parsed tp;
int parse_res;