diff options
author | Rich Salz <rsalz@openssl.org> | 2015-04-02 15:58:10 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-04-02 15:58:10 -0400 |
commit | 22ebaae08c6c10de1e6b0225531c94e5866070d7 (patch) | |
tree | 7f366d3b82e17681aa3f89bc3acd3ec8e424b1c1 /test/ssltest.c | |
parent | 7eeeb49e1103533bc81c234eb19613353866e474 (diff) |
Fewer newlines in comp method output
Print "supported compression methods" all on one line.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'test/ssltest.c')
-rw-r--r-- | test/ssltest.c | 8 |
1 files 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 |