[Pcsclite-cvs-commit] r6015 - /trunk/PCSC/src/spy/pcsc-spy.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Oct 7 13:36:42 UTC 2011


Author: rousseau
Date: Fri Oct  7 13:36:42 2011
New Revision: 6015

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6015
Log:
log_buffer(): display NULL if the buffer is a NULL pointer

This is used to differentiate a NULL buffer from an empty buffer.

Modified:
    trunk/PCSC/src/spy/pcsc-spy.py

Modified: trunk/PCSC/src/spy/pcsc-spy.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/pcsc-spy.py?rev=6015&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.py (original)
+++ trunk/PCSC/src/spy/pcsc-spy.py Fri Oct  7 13:36:42 2011
@@ -358,7 +358,9 @@
 
         hex_buffer = self.filedesc.readline().strip()
         log(field)
-        if hex_buffer != "NULL" and hex_buffer != "":
+        if hex_buffer == "NULL":
+            log(" NULL")
+        elif hex_buffer != "":
             int_buffer = [int(x, 16) for x in hex_buffer.split(" ")]
             formated_buffer = hexdump(int_buffer)
             log_multi(formated_buffer, " ")




More information about the Pcsclite-cvs-commit mailing list