diff options
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 8 | ||||
-rw-r--r-- | openbsc/tests/gsm0408/gsm0408_test.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index 8c0abc262..ec3a532f5 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -489,7 +489,7 @@ static void test_mgcp_ass_tracking(void) if (msg->l2h[16] != 0 || msg->l2h[17] != 0x1) { fprintf(stderr, "Input is not as expected.. %s 0x%x\n", - hexdump(msg->l2h, msgb_l2len(msg)), + osmo_hexdump(msg->l2h, msgb_l2len(msg)), msg->l2h[17]); abort(); } @@ -519,7 +519,7 @@ static void test_mgcp_ass_tracking(void) uint16_t cic = htons(timeslot & 0x1f); if (memcmp(&cic, &msg->l2h[16], sizeof(cic)) != 0) { fprintf(stderr, "Message was not patched properly\n"); - fprintf(stderr, "data cic: 0x%x %s\n", cic, hexdump(msg->l2h, msgb_l2len(msg))); + fprintf(stderr, "data cic: 0x%x %s\n", cic, osmo_hexdump(msg->l2h, msgb_l2len(msg))); abort(); } @@ -908,7 +908,7 @@ static void test_setup_rewrite() if (memcmp(cc_setup_national_patched, out->data, out->len) != 0) { fprintf(stderr, "FAIL: Data is wrong.\n"); - fprintf(stderr, "Data was: %s\n", hexdump(out->data, out->len)); + fprintf(stderr, "Data was: %s\n", osmo_hexdump(out->data, out->len)); abort(); } @@ -942,7 +942,7 @@ static void test_setup_rewrite() if (memcmp(cc_setup_national_patched, out->data, out->len) != 0) { fprintf(stderr, "FAIL: Data is wrong.\n"); - fprintf(stderr, "Data was: %s\n", hexdump(out->data, out->len)); + fprintf(stderr, "Data was: %s\n", osmo_hexdump(out->data, out->len)); abort(); } diff --git a/openbsc/tests/gsm0408/gsm0408_test.c b/openbsc/tests/gsm0408/gsm0408_test.c index 46e93b838..679ce664f 100644 --- a/openbsc/tests/gsm0408/gsm0408_test.c +++ b/openbsc/tests/gsm0408/gsm0408_test.c @@ -85,12 +85,12 @@ static void test_mi_functionality(void) /* imsi code */ mi_len = gsm48_generate_mid_from_imsi(mi, imsi_odd); gsm48_mi_to_string(mi_parsed, sizeof(mi_parsed), mi + 2, mi_len -2); - printf("hex: %s\n", hexdump(mi, mi_len)); + printf("hex: %s\n", osmo_hexdump(mi, mi_len)); COMPARE_STR(mi_parsed, imsi_odd); mi_len = gsm48_generate_mid_from_imsi(mi, imsi_even); gsm48_mi_to_string(mi_parsed, sizeof(mi_parsed), mi + 2, mi_len -2); - printf("hex: %s\n", hexdump(mi, mi_len)); + printf("hex: %s\n", osmo_hexdump(mi, mi_len)); COMPARE_STR(mi_parsed, imsi_even); } |