[Pcsclite-cvs-commit] PCSC/src muscletest.c,1.8,1.9
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv10452
Modified Files:
muscletest.c
Log Message:
also print tokenType field as a number and string
Index: muscletest.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/muscletest.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- muscletest.c 31 Mar 2004 13:11:27 -0000 1.8
+++ muscletest.c 31 Mar 2004 13:50:54 -0000 1.9
@@ -76,7 +76,16 @@
printf("\n");
printf("Token state : %04lX\n", tokenList[i].tokenState);
- printf("\n");
+ printf("Token type : %04lX ", tokenList[i].tokenType);
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_REMOVED)
+ printf("token removed ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_UNKNOWN)
+ printf("token unkown ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_KNOWN)
+ printf("token known ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_RESET)
+ printf("token reset ");
+ printf("\n\n");
tokenList[i].tokenState = MSC_STATE_EMPTY;
}
@@ -98,7 +107,16 @@
printf("\n");
printf("Token state : %04lX\n", tokenList[i].tokenState);
- printf("\n");
+ printf("Token type : %04lX ", tokenList[i].tokenType);
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_REMOVED)
+ printf("token removed ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_UNKNOWN)
+ printf("token unkown ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_KNOWN)
+ printf("token known ");
+ if (tokenList[i].tokenType & MSC_TOKEN_TYPE_RESET)
+ printf("token reset ");
+ printf("\n\n");
if (tokenList[i].tokenState & SCARD_STATE_PRESENT)
reader_to_use = i;