PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Revision:
1:b8cab5222fd0
Parent:
0:9c6b9280c0e1
--- a/debug.h	Tue Oct 08 08:33:22 2013 +0000
+++ b/debug.h	Thu Oct 17 06:37:26 2013 +0000
@@ -7,11 +7,18 @@
 
 #include <stdio.h>
 
-#define DMSG(str)       printf("%s\r\n", str)
-#define DMSG_HEX(n)     printf("%2X ", n)
+#define DMSG(args...)   printf(args)
+#define DMSG_STR(str)   printf("%s\n", str)
+#define DMSG_INT(num)   printf("%d\n", num)
+#define DMSG_HEX(num)   printf("%2X ", num)
+
 #else
-#define DMSG(str)
-#define DMSG_HEX(n)
-#endif
 
-#endif
+#define DMSG(args...)
+#define DMSG_STR(str)
+#define DMSG_INT(num)
+#define DMSG_HEX(num)
+
+#endif  // DEBUG
+
+#endif  // __DEBUG_H__