diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-30 08:41:17 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-30 08:41:17 +0200 |
commit | 18bbe2e8a012be195069fad7224121ab64953fec (patch) | |
tree | e983e1b94b9a2fe987459afc10c7a456b972fb0d /openbsc/tests | |
parent | 1b17913cbc75fc8fd96b5ffae14ec462e2d7c010 (diff) |
misc: Do not prepend 0x when using %p in printf.
Diffstat (limited to 'openbsc/tests')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index 966667e3c..196f187d8 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -190,7 +190,7 @@ static void copy_to_msg(struct msgb *msg, const u_int8_t *data, unsigned int len #define VERIFY(con_found, con, msg, ver, str) \ if (con_found != con) { \ - fprintf(stderr, "Failed to find the con: 0x%p\n", con_found); \ + fprintf(stderr, "Failed to find the con: %p\n", con_found); \ abort(); \ } \ if (memcmp(msg->data, ver, sizeof(ver)) != 0) { \ @@ -217,7 +217,7 @@ static void test_contrack() parsed = bsc_nat_parse(msg); con_found = patch_sccp_src_ref_to_msc(msg, parsed, nat); if (con_found != NULL) { - fprintf(stderr, "Con should not exist 0x%p\n", con_found); + fprintf(stderr, "Con should not exist %p\n", con_found); abort(); } rc = create_sccp_src_ref(con, msg, parsed); @@ -227,7 +227,7 @@ static void test_contrack() } con_found = patch_sccp_src_ref_to_msc(msg, parsed, nat); if (con_found != con) { - fprintf(stderr, "Failed to find the con: 0x%p\n", con_found); + fprintf(stderr, "Failed to find the con: %p\n", con_found); abort(); } if (memcmp(msg->data, bsc_cr_patched, sizeof(bsc_cr_patched)) != 0) { @@ -269,7 +269,7 @@ static void test_contrack() parsed = bsc_nat_parse(msg); con_found = patch_sccp_src_ref_to_msc(msg, parsed, nat); if (con_found != con) { - fprintf(stderr, "Failed to find the con: 0x%p\n", con_found); + fprintf(stderr, "Failed to find the con: %p\n", con_found); abort(); } if (memcmp(msg->data, bsc_rlc_patched, sizeof(bsc_rlc_patched)) != 0) { @@ -281,7 +281,7 @@ static void test_contrack() /* verify that it is gone */ if (con_found != NULL) { - fprintf(stderr, "Con should be gone. 0x%p\n", con_found); + fprintf(stderr, "Con should be gone. %p\n", con_found); abort(); } talloc_free(parsed); |