]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
p11tool: be more compact in token URL printing
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 10 Jul 2015 14:55:48 +0000 (16:55 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 10 Jul 2015 14:55:48 +0000 (16:55 +0200)
src/pkcs11.c

index ab2de9e9bdafb5f3e755a8eb8561bfc445e8342b..effee75160ef367fa62e6f3b894ac25fdc971628 100644 (file)
@@ -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);