From 22ebaae08c6c10de1e6b0225531c94e5866070d7 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Thu, 2 Apr 2015 15:58:10 -0400 Subject: [PATCH] Fewer newlines in comp method output Print "supported compression methods" all on one line. Reviewed-by: Andy Polyakov --- test/ssltest.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.34.1