summaryrefslogtreecommitdiff
path: root/test/dtls_mtu_test.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-06-21 08:39:54 +1000
committerRich Salz <rsalz@openssl.org>2017-06-21 08:33:47 -0400
commitbff951eeb1f86207ac02e0f73305c31ac0ab5f4f (patch)
treee14037beb5ab11f8225a01027c9f8c7d52a55029 /test/dtls_mtu_test.c
parent05eec39505ba8af6f3c1558a26c565987707cd37 (diff)
downloadopenssl-new-bff951eeb1f86207ac02e0f73305c31ac0ab5f4f.tar.gz
Remove OSSLzu macros and use %zu in the test framework (via BIO_printf).
Convert the debug prints in dtls_mtu_test.c to use the framework. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3730)
Diffstat (limited to 'test/dtls_mtu_test.c')
-rw-r--r--test/dtls_mtu_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dtls_mtu_test.c b/test/dtls_mtu_test.c
index 50f952b2ce..415f69e244 100644
--- a/test/dtls_mtu_test.c
+++ b/test/dtls_mtu_test.c
@@ -73,7 +73,7 @@ static int mtu_test(SSL_CTX *ctx, const char *cs, int no_etm)
goto end;
if (debug)
- printf("Channel established\n");
+ TEST_info("Channel established");
/* For record MTU values between 500 and 539, call DTLS_get_data_mtu()
* to query the payload MTU which will fit. */
@@ -104,7 +104,7 @@ static int mtu_test(SSL_CTX *ctx, const char *cs, int no_etm)
goto end;
reclen = BIO_read(sc_bio, buf, sizeof(buf));
if (debug)
- printf("record %"OSSLzu" for payload %"OSSLzu"\n", reclen, s);
+ TEST_info("record %zu for payload %zu", reclen, s);
for (i = 0; i < 30; i++) {
/* DTLS_get_data_mtu() with record MTU 500+i returned mtus[i] ... */