fixed Wrong type of arguments to formatting function

This commit is contained in:
Frank Morgner 2019-04-25 16:05:58 +02:00
parent 5123531e62
commit 86ba3ea489
2 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ static int print_info(sc_card_t *card) {
}
for (i = 0; i < cmaprecordnum; i++) {
printf(" container: %d\n", i);
wprintf(L" guid: %s\n", cmaprecords[i].wszGuid);
wprintf(L" guid: %ls\n", cmaprecords[i].wszGuid);
printf(" bFlags: ");
if (cmaprecords[i].bFlags & CONTAINER_MAP_VALID_CONTAINER) {
printf("Valid container");

View File

@ -3310,7 +3310,7 @@ static int write_object(CK_SESSION_HANDLE session)
else if (strncasecmp(opt_key_type, "DES3:", strlen("DES3:")) == 0)
type = CKK_DES3;
else
util_fatal("Unknown key type %s", type);
util_fatal("Unknown key type: 0x%X", type);
}
FILL_ATTR(seckey_templ[0], CKA_CLASS, &clazz, sizeof(clazz));