aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/db
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-03-17 14:41:26 +0100
committerHarald Welte <laforge@gnumonks.org>2016-03-17 14:42:24 +0100
commit3ad0346f00c4d135f7d4d15017ce2941e13e2c54 (patch)
treeac1b91a86b068b4c04f5bb40ac3e34974d2d37ff /openbsc/tests/db
parent044fbe6568f82a12bf4e3addc7e3d6db529b6548 (diff)
Revert "move to hex TMSI representation"
This reverts commit 044fbe6568f82a12bf4e3addc7e3d6db529b6548.
Diffstat (limited to 'openbsc/tests/db')
-rw-r--r--openbsc/tests/db/db_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/db/db_test.c b/openbsc/tests/db/db_test.c
index faea82055..a02d1f801 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), "0x%08x", alice->tmsi);
+ snprintf(scratch_str, sizeof(scratch_str), "%"PRIu32, 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), "0x%08x", alice->tmsi);
+ snprintf(scratch_str, sizeof(scratch_str), "%"PRIu32, alice->tmsi);
alice_db = db_get_subscriber(GSM_SUBSCRIBER_TMSI, scratch_str);
COMPARE(alice, alice_db);
SUBSCR_PUT(alice_db);