diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-07 13:32:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-07-07 13:32:56 +0200 |
commit | 839bab44cdc586526e85b3b3f11fd2afdfbdb879 (patch) | |
tree | 9d375fcd3de5af7f861b37513082c22879f4f349 | |
parent | 1f50bf59eb11078dafdcb88bb570da7db0e7203a (diff) | |
download | gnutls-839bab44cdc586526e85b3b3f11fd2afdfbdb879.tar.gz |
p11tool: make brief output more brief
-rw-r--r-- | src/pkcs11.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c index 7f4ba261e1..126cbb9293 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -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 = |