diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2016-03-16 21:14:03 +0600 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-03-17 14:15:16 +0100 |
commit | 044fbe6568f82a12bf4e3addc7e3d6db529b6548 (patch) | |
tree | a76811eda49164a576922cb1cbf4fdf2e03923e0 /openbsc/tests/db/db_test.c | |
parent | d2fa7a509a989bb775b56932502d128ec974330d (diff) |
move to hex TMSI representation
In OpenBSC, we traditionally displayed a TMSI in its integer
representation, which is quite unusual in the telecom world. A TMSI is
normally printed as a series of 8 hex digits.
This patch aligns OpenBSC with the telecom industry standard.
Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
Diffstat (limited to 'openbsc/tests/db/db_test.c')
-rw-r--r-- | openbsc/tests/db/db_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/db/db_test.c b/openbsc/tests/db/db_test.c index a02d1f801..faea82055 100644 --- a/openbsc/tests/db/db_test.c +++ b/openbsc/tests/db/db_test.c @@ -200,7 +200,7 @@ int main() alice->lac=42; db_sync_subscriber(alice); /* Get by TMSI */ - snprintf(scratch_str, sizeof(scratch_str), "%"PRIu32, alice->tmsi); + snprintf(scratch_str, sizeof(scratch_str), "0x%08x", alice->tmsi); alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str); COMPARE(alice, alice_db); SUBSCR_PUT(alice_db); @@ -227,7 +227,7 @@ int main() db_subscriber_assoc_imei(alice, "1234567890"); db_subscriber_assoc_imei(alice, "6543560920"); /* Get by TMSI */ - snprintf(scratch_str, sizeof(scratch_str), "%"PRIu32, alice->tmsi); + snprintf(scratch_str, sizeof(scratch_str), "0x%08x", alice->tmsi); alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str); COMPARE(alice, alice_db); SUBSCR_PUT(alice_db); |