]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
p11tool: make brief output more brief
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 7 Jul 2014 11:32:56 +0000 (13:32 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 7 Jul 2014 11:32:56 +0000 (13:32 +0200)
src/pkcs11.c

index 7f4ba261e177015a67f5997fe56dca6ab1da6ca0..126cbb9293efb216ad0f1c3f37fdee94cbf794fb 100644 (file)
@@ -372,10 +372,12 @@ pkcs11_token_list(FILE * outfile, unsigned int detailed,
                        exit(1);
                }
 
-               fprintf(outfile, "Token %d:\n\tURL: %s\n", i, url);
-
-               if (brief != 0)
+               if (brief != 0) {
+                       fprintf(outfile, "Token %d: %s\n", i, url);
                        goto cont;
+               } else {
+                       fprintf(outfile, "Token %d:\n\tURL: %s\n", i, url);
+               }
 
                size = sizeof(buf);
                ret =