From d1c454ca023995f6653b7b74cd46044937b5a81c Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 19 Apr 2016 14:16:01 +0200 Subject: [PATCH] error isn't an iso error, run ykpiv_strerror() on it --- tool/yubico-piv-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/yubico-piv-tool.c b/tool/yubico-piv-tool.c index a151782..bcc2892 100644 --- a/tool/yubico-piv-tool.c +++ b/tool/yubico-piv-tool.c @@ -1025,7 +1025,7 @@ static bool change_pin(ykpiv_state *state, enum enum_action action, const char * return false; default: - fprintf(stderr, "Failed changing/unblocking code, error: %x\n", res); + fprintf(stderr, "Failed changing/unblocking code, error: %s\n", ykpiv_strerror(res)); return false; } }