From: Rich Salz Date: Thu, 2 Apr 2015 19:58:10 +0000 (-0400) Subject: Fewer newlines in comp method output X-Git-Tag: OpenSSL_1_1_0-pre1~1349 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=22ebaae08c6c10de1e6b0225531c94e5866070d7 Fewer newlines in comp method output Print "supported compression methods" all on one line. Reviewed-by: Andy Polyakov --- diff --git a/test/ssltest.c b/test/ssltest.c index 508fedd613..c9f5b4da1d 100644 --- a/test/ssltest.c +++ b/test/ssltest.c @@ -1394,16 +1394,18 @@ int main(int argc, char *argv[]) } } ssl_comp_methods = SSL_COMP_get_compression_methods(); - fprintf(stderr, "Available compression methods:\n"); + fprintf(stderr, "Available compression methods:"); { int j, n = sk_SSL_COMP_num(ssl_comp_methods); if (n == 0) fprintf(stderr, " NONE\n"); - else + else { for (j = 0; j < n; j++) { SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j); - fprintf(stderr, " %d: %s\n", c->id, c->name); + fprintf(stderr, " %s:%d", c->name, c->id); } + fprintf(stderr, "\n"); + } } #endif