[PATCH] osmo-iuh[master]: hnb-test: log accurate three-digit MNC with leading zeros

2018-02-26 Thread Neels Hofmeyr
Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

https://gerrit.osmocom.org/6670

to look at the new patch set (#2).

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

Depends: Id2240f7f518494c9df6c8bda52c0d5092f90f221 (libosmocore)
Change-Id: Ie3dd206bca2f38a0ef7ee7f9d3b6bf2eacc899a4
---
M src/tests/hnb-test.c
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/70/6670/2

diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 32f4ba8..5a90b95 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -267,10 +267,11 @@
 
lai = (struct gsm48_loc_area_id *)>data[0];
 
-   uint16_t mcc, mnc, lac;
-   gsm48_decode_lai(lai, , , );
-   printf("LU: mcc %hd  mnc %hd  lac %hd\n",
-  mcc, mnc, lac);
+   struct osmo_location_area_id laid;
+   osmo_decode_lai(lai, );
+   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;

-- 
To view, visit https://gerrit.osmocom.org/6670
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie3dd206bca2f38a0ef7ee7f9d3b6bf2eacc899a4
Gerrit-PatchSet: 2
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr 
Gerrit-Reviewer: Jenkins Builder


[PATCH] osmo-iuh[master]: hnb-test: log accurate three-digit MNC with leading zeros

2018-02-21 Thread Neels Hofmeyr

Review at  https://gerrit.osmocom.org/6670

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

Depends: Id2240f7f518494c9df6c8bda52c0d5092f90f221 (libosmocore)
Change-Id: Ie3dd206bca2f38a0ef7ee7f9d3b6bf2eacc899a4
---
M src/tests/hnb-test.c
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/70/6670/1

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 @@
lai = (struct gsm48_loc_area_id *)>data[0];
 
uint16_t mcc, mnc, lac;
-   gsm48_decode_lai(lai, , , );
-   printf("LU: mcc %hd  mnc %hd  lac %hd\n",
-  mcc, mnc, lac);
+   bool mnc_3_digits;
+   gsm48_decode_lai2(lai, , , _3_digits, );
+   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;

-- 
To view, visit https://gerrit.osmocom.org/6670
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3dd206bca2f38a0ef7ee7f9d3b6bf2eacc899a4
Gerrit-PatchSet: 1
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr