summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-20 22:06:56 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-20 22:06:56 +0100
commit0bf93a6482e620b773fe3eea926c70c15d95b962 (patch)
treeda59e2a89b61edecbaa4a0aa83bc7c2a8e1072cd
parent22da145e4cbfee53039562b318516b3d8d1a49d0 (diff)
gsm0408_test: cosmetically re-order MCC to come before MNC
For consistency in human readability, MCC simply should come first, always. Change-Id: Idb86a7088fac4d8a8c41190ab46f9801635f4eee
-rw-r--r--tests/gsm0408/gsm0408_test.c6
-rw-r--r--tests/gsm0408/gsm0408_test.ok8
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c
index 8e6cf2f2..87f8dded 100644
--- a/tests/gsm0408/gsm0408_test.c
+++ b/tests/gsm0408/gsm0408_test.c
@@ -132,7 +132,7 @@ static int test_bearer_cap()
static inline void dump_ra(const struct gprs_ra_id *raid)
{
- printf("RA: MNC=%u, MCC=%u, LAC=%u, RAC=%u\n", raid->mnc, raid->mcc, raid->lac, raid->rac);
+ printf("RA: MCC=%u, MNC=%u, LAC=%u, RAC=%u\n", raid->mcc, raid->mnc, raid->lac, raid->rac);
}
static inline void check_ra(const struct gprs_ra_id *raid)
@@ -160,14 +160,14 @@ static inline void check_ra(const struct gprs_ra_id *raid)
static struct gprs_ra_id test_ra_cap_items[] = {
{
- .mnc = 121,
.mcc = 77,
+ .mnc = 121,
.lac = 666,
.rac = 5,
},
{
- .mnc = 98,
.mcc = 84,
+ .mnc = 98,
.lac = 11,
.rac = 89,
},
diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok
index 76a79403..295d8ecd 100644
--- a/tests/gsm0408/gsm0408_test.ok
+++ b/tests/gsm0408/gsm0408_test.ok
@@ -3,10 +3,10 @@ Test `Speech, all codecs' passed
Simple TMSI encoding test....passed
Simple IMSI encoding test....passed: [10] 17 08 99 10 07 00 00 00 64 02
Constructed RA:
-RA: MNC=121, MCC=77, LAC=666, RAC=5
-RA: MNC=121, MCC=77, LAC=666, RAC=5
+RA: MCC=77, MNC=121, LAC=666, RAC=5
+RA: MCC=77, MNC=121, LAC=666, RAC=5
RA test...passed
Constructed RA:
-RA: MNC=98, MCC=84, LAC=11, RAC=89
-RA: MNC=98, MCC=84, LAC=11, RAC=89
+RA: MCC=84, MNC=98, LAC=11, RAC=89
+RA: MCC=84, MNC=98, LAC=11, RAC=89
RA test...passed