summaryrefslogtreecommitdiffstats
path: root/tests/sockaddr_str/sockaddr_str_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-11-04 16:59:05 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2019-11-11 20:14:01 +0100
commit83d691048b8d181da610ddd45e9a7091310bcd28 (patch)
tree54385c72b9a54cde460aeae02b5e9596dbeb6c8d /tests/sockaddr_str/sockaddr_str_test.c
parent8eae2fcce0620d3a7a66437161050847ac666812 (diff)
test: add OSMO_SOCKADDR_STR_FMT to sockaddr_str_test.c
This shows the weird format choice for showing IPv6 addresses' port, fixed in subsequent patch. Change-Id: I8e5ebfbbc3a2b88aed820e8f845d9f6ededb29de
Diffstat (limited to 'tests/sockaddr_str/sockaddr_str_test.c')
-rw-r--r--tests/sockaddr_str/sockaddr_str_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sockaddr_str/sockaddr_str_test.c b/tests/sockaddr_str/sockaddr_str_test.c
index 4284387b..bf7d7380 100644
--- a/tests/sockaddr_str/sockaddr_str_test.c
+++ b/tests/sockaddr_str/sockaddr_str_test.c
@@ -107,6 +107,8 @@ void sockaddr_str_test_conversions()
printf("\n\n");
dump_oip(x);
+ printf(" OSMO_SOCKADDR_STR_FMT: '" OSMO_SOCKADDR_STR_FMT "'\n",
+ OSMO_SOCKADDR_STR_FMT_ARGS(x));
printf(" osmo_sockaddr_str_is_set() = %s\n", osmo_sockaddr_str_is_set(x) ? "true" : "false");
printf(" osmo_sockaddr_str_is_nonzero() = %s\n", osmo_sockaddr_str_is_nonzero(x) ? "true" : "false");