[pkg-opensc-commit] [opensc] 17/23: pkcs11-tool: print in hex the code of unknown mechanism
Eric Dorland
eric at moszumanska.debian.org
Tue Jul 5 06:01:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository opensc.
commit b8dcf91515b3760230a15515d2b2658ac0282e63
Author: Viktor Tarasov <viktor.tarasov at gmail.com>
Date: Fri Jun 3 10:19:30 2016 +0200
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 b9ad227..15677b4 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git
More information about the pkg-opensc-commit
mailing list