Add debug output for ATS
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2002
e0336214-984f-0b4b-a45f-
81c69e1f0ede
#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
#endif /* LIBRFID_FIRMWARE */
#define DEBUGPC(x, args ...) fprintf(stderr, x, ## args)
#endif /* LIBRFID_FIRMWARE */
#else /* DEBUG */
extern const char *rfid_hexdump(const void *data, unsigned int len);
#else /* DEBUG */
extern const char *rfid_hexdump(const void *data, unsigned int len);
h->priv.tcl.historical_len = (ats+len) - cur;
h->priv.tcl.historical_bytes = cur;
h->priv.tcl.historical_len = (ats+len) - cur;
h->priv.tcl.historical_bytes = cur;
+
+ DEBUGP("ATS parsed: %s\n", rfid_hexdump(ats, size));