pkcs11-tool: print in hex the code of unknown mechanism

This commit is contained in:
Viktor Tarasov 2016-06-03 10:19:30 +02:00
parent 2ba87640d2
commit b8dcf91515
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}