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:
martin 2009-11-25 18:01:30 +00:00
parent 0756990c44
commit f2d6ec2c76
1 changed files with 5 additions and 4 deletions

View File

@ -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)));