From 0dc6ad2ea72177604613f1abe951e86dab6d09b7 Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 1 Nov 2005 17:57:57 +0000 Subject: remove debugging git-svn-id: https://svn.gnumonks.org/trunk/librfid@1612 e0336214-984f-0b4b-a45f-81c69e1f0ede --- rfid_proto_tcl.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'rfid_proto_tcl.c') diff --git a/rfid_proto_tcl.c b/rfid_proto_tcl.c index 25ff45a..f070614 100644 --- a/rfid_proto_tcl.c +++ b/rfid_proto_tcl.c @@ -36,6 +36,14 @@ #include "rfid_iso14443_common.h" +#if 1 +#ifdef DEBUGP +#undef DEBUGP +#define DEBUGP(x, ...) +#define DEBUGPC(x, ...) +#endif +#endif + static enum rfid_frametype l2_to_frame(unsigned int layer2) { switch (layer2) { @@ -605,10 +613,10 @@ do_tx: unsigned int net_payload_len; /* we're actually receiving payload data */ - DEBUGP("I-Block\n"); + DEBUGP("I-Block: "); if (*rx_buf & TCL_PCB_CID_FOLLOWING) { if (*(rx_buf+1) != h->priv.tcl.cid) { - DEBUGP("CID %u is not valid\n", *(rx_buf)+1); + DEBUGPC("CID %u is not valid\n", *(rx_buf)+1); goto out_rxb; } inf++; @@ -617,6 +625,7 @@ do_tx: inf++; } net_payload_len = _rx_len - (inf - rx_buf); + DEBUGPC("%u bytes\n", net_payload_len); memcpy(_rx_data, inf, net_payload_len); /* increment the number of payload bytes that we actually received */ *rx_len += net_payload_len; -- cgit v1.2.3