summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-05-25 11:41:02 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-05-26 10:20:25 +0300
commit011684bd4f92c545cb792b582d7556ab394e2cf0 (patch)
treea3364c66fb76d47a7535704dd5c74edff6fd4fd3
parent22fdb915717c6c7053ae1a62965d8650097c1dbf (diff)
downloadmicropython-011684bd4f92c545cb792b582d7556ab394e2cf0.tar.gz
micropython-011684bd4f92c545cb792b582d7556ab394e2cf0.zip
zephyr/modusocket: Use DEBUG_PRINT macro name as other modules do.
Indeed, just "DEBUG" is too generic.
-rw-r--r--zephyr/modusocket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/modusocket.c b/zephyr/modusocket.c
index 80339a2bdd..0a54ea576c 100644
--- a/zephyr/modusocket.c
+++ b/zephyr/modusocket.c
@@ -38,8 +38,8 @@
#include <net/net_pkt.h>
#include <net/dns_resolve.h>
-#define DEBUG 0
-#if DEBUG // print debugging info
+#define DEBUG_PRINT 0
+#if DEBUG_PRINT // print debugging info
#define DEBUG_printf printf
#else // don't print debugging info
#define DEBUG_printf(...) (void)0
@@ -165,7 +165,7 @@ static void sock_received_cb(struct net_context *context, struct net_pkt *pkt, i
DEBUG_printf(" (appdatalen=%d), token: %p", pkt->appdatalen, net_pkt_token(pkt));
}
DEBUG_printf("\n");
- #if DEBUG > 1
+ #if DEBUG_PRINT > 1
net_pkt_print_frags(pkt);
#endif