summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-07-10 16:55:48 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-07-10 16:55:48 +0200
commitcbf32cd989dc88d2d0cb5cd54096f5650ada9c98 (patch)
treef9a1b1d986c24d28039f5af13aa86bf614175b39
parent6961cd4e5ab2b21ec440e1eac5846a05f17871df (diff)
downloadgnutls-cbf32cd989dc88d2d0cb5cd54096f5650ada9c98.tar.gz
p11tool: be more compact in token URL printing
-rw-r--r--src/pkcs11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index ab2de9e9bd..effee75160 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -45,7 +45,7 @@ char *get_single_token_url(common_info_st * info);
if (url == NULL) { \
url = get_single_token_url(info); \
if (url == NULL) { \
- fprintf(stderr, "warning: no token URL was provided for this operation; the available tokens are:\n"); \
+ fprintf(stderr, "warning: no token URL was provided for this operation; the available tokens are:\n\n"); \
pkcs11_token_list(out, det, info, 1); \
exit(1); \
} \
@@ -545,7 +545,7 @@ pkcs11_token_list(FILE * outfile, unsigned int detailed,
}
if (brief != 0) {
- fprintf(outfile, "Token %d: %s\n", i, url);
+ fprintf(outfile, "%s\n", url);
goto cont;
} else {
fprintf(outfile, "Token %d:\n\tURL: %s\n", i, url);