diff options
-rw-r--r-- | include/librfid/rfid.h | 2 | ||||
-rw-r--r-- | src/rfid_proto_tcl.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/librfid/rfid.h b/include/librfid/rfid.h index 580cc09..e92cf58 100644 --- a/include/librfid/rfid.h +++ b/include/librfid/rfid.h @@ -31,6 +31,8 @@ extern const char *rfid_hexdump(const void *data, unsigned int len); #define DEBUGPC(x, args ...) fprintf(stderr, x, ## args) #endif /* LIBRFID_FIRMWARE */ +#include <stdio.h> + #else /* DEBUG */ extern const char *rfid_hexdump(const void *data, unsigned int len); diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c index 70259e6..413b9d6 100644 --- a/src/rfid_proto_tcl.c +++ b/src/rfid_proto_tcl.c @@ -164,6 +164,8 @@ tcl_parse_ats(struct rfid_protocol_handle *h, h->priv.tcl.historical_len = (ats+len) - cur; h->priv.tcl.historical_bytes = cur; + + DEBUGP("ATS parsed: %s\n", rfid_hexdump(ats, size)); return 0; } |