Author: Ingo Tuchscherer <[email protected]>
Date: Fri Aug 7 11:30:17 2015 +0200
Corrected slot number output in misc testcase
Signed-off-by: Ingo Tuchscherer <[email protected]>
diff --git a/testcases/pkcs11/misc_func.c b/testcases/pkcs11/misc_func.c
index 8103649..2f37085 100755
--- a/testcases/pkcs11/misc_func.c
+++ b/testcases/pkcs11/misc_func.c
@@ -463,7 +463,7 @@ CK_RV do_GetSlotInfo( void )
return rc;
}
- printf(" CK_SLOT_INFO for slot #1: \n");
+ printf(" CK_SLOT_INFO for slot #%d: \n", (int)slot_id);
printf(" slotDescription: %64.64s\n", info.slotDescription );
printf(" manufacturerID: %32.32s\n", info.manufacturerID );
printf(" flags: %p\n", (void *)info.flags );
@@ -495,7 +495,7 @@ CK_RV do_GetTokenInfo( void )
}
- printf(" CK_TOKEN_INFO for slot #1: \n");
+ printf(" CK_TOKEN_INFO for slot #%d: \n", (int)slot_id);
printf(" label: %32.32s\n", info.label );
printf(" manufacturerID: %32.32s\n",
info.manufacturerID );
printf(" model: %16.16s\n", info.model );
------------------------------------------------------------------------------
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech