summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-07 13:32:56 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-07 13:32:56 +0200
commit839bab44cdc586526e85b3b3f11fd2afdfbdb879 (patch)
tree9d375fcd3de5af7f861b37513082c22879f4f349
parent1f50bf59eb11078dafdcb88bb570da7db0e7203a (diff)
downloadgnutls-839bab44cdc586526e85b3b3f11fd2afdfbdb879.tar.gz
p11tool: make brief output more brief
-rw-r--r--src/pkcs11.c8
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 =