Always print the slot description (reader name in case of OpenSC)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3867 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
0756990c44
commit
f2d6ec2c76
|
@ -676,12 +676,13 @@ static void list_slots(void)
|
|||
printf("(GetSlotInfo failed, error %u)\n", (unsigned int) rv);
|
||||
continue;
|
||||
}
|
||||
if ((!verbose) && !(info.flags & CKF_TOKEN_PRESENT)) {
|
||||
printf("(empty)\n");
|
||||
continue;
|
||||
}
|
||||
printf("%s\n", p11_utf8_to_local(info.slotDescription,
|
||||
sizeof(info.slotDescription)));
|
||||
if ((!verbose) && !(info.flags & CKF_TOKEN_PRESENT)) {
|
||||
printf(" (empty)\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
printf(" manufacturer: %s\n", p11_utf8_to_local(info.manufacturerID,
|
||||
sizeof(info.manufacturerID)));
|
||||
|
|
Loading…
Reference in New Issue