Need stdio.h for fprintf

Add debug output for ATS


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2002 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
ploetz 2007-06-10 03:02:41 +00:00
parent 1b6e20e497
commit 76035dde43
2 changed files with 4 additions and 0 deletions

View File

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

View File

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