From b8dcf91515b3760230a15515d2b2658ac0282e63 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Fri, 3 Jun 2016 10:19:30 +0200 Subject: [PATCH] pkcs11-tool: print in hex the code of unknown mechanism --- src/tools/pkcs11-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c index b9ad2277..15677b45 100644 --- a/src/tools/pkcs11-tool.c +++ b/src/tools/pkcs11-tool.c @@ -5038,7 +5038,7 @@ static const char *p11_mechanism_to_name(CK_MECHANISM_TYPE mech) if (mi->mech == mech) return mi->name; } - snprintf(temp, sizeof(temp), "mechtype-%lu", (unsigned long) mech); + snprintf(temp, sizeof(temp), "mechtype-0x%lX", (unsigned long) mech); return temp; }