hnb-test: log accurate three-digit MNC with leading zeros

Depends: Id2240f7f518494c9df6c8bda52c0d5092f90f221 (libosmocore)
Change-Id: Ie3dd206bca2f38a0ef7ee7f9d3b6bf2eacc899a4
This commit is contained in:
Neels Hofmeyr 2018-02-22 04:04:22 +01:00
parent c964a2cfa1
commit 3050864b73
1 changed files with 5 additions and 4 deletions

View File

@ -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;