Fewer newlines in comp method output
[openssl.git] / test / ssltest.c
index 508fedd613f8f71a2f9d477a63a60fc7b83a7b27..c9f5b4da1d07ea703d5cda3954b5722d01ee2170 100644 (file)
@@ -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