From 011684bd4f92c545cb792b582d7556ab394e2cf0 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 25 May 2017 11:41:02 +0300 Subject: [PATCH] zephyr/modusocket: Use DEBUG_PRINT macro name as other modules do. Indeed, just "DEBUG" is too generic. --- zephyr/modusocket.c | 6 +++--- 1 file 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 #include -#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