]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Prefix mechanism number with 0x.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 30 Nov 2010 20:34:31 +0000 (21:34 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 30 Nov 2010 20:34:31 +0000 (21:34 +0100)
src/pkcs11.c

index bac75f35d064dab085d8c65a2c0d19a3285039a7..1ac05031af1fc989389c381767527fb95bf3db1e 100644 (file)
@@ -869,7 +869,7 @@ pkcs11_mechanism_list (FILE * outfile, const char *url, unsigned int login,
             str = mech_list[mechanism];
           if (str == NULL) str = "UNKNOWN";
 
-          fprintf(outfile, "[%.4lx] %s\n", mechanism, str);
+          fprintf(outfile, "[0x%.4lx] %s\n", mechanism, str);
         }
     } while(ret >= 0);