]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
support print for lwip statistics does not depend on LWIP_DEBUG define anymore
authorJan Dolezal <pm.jenik@gmail.com>
Mon, 7 Oct 2013 11:46:01 +0000 (13:46 +0200)
committerJan Dolezal <pm.jenik@gmail.com>
Mon, 7 Oct 2013 11:46:01 +0000 (13:46 +0200)
src/include/arch/cc.h
src/include/arch/lwipopts.h

index 35500194dd0b02ec3fb5e13ec6109582d91c6fc2..21c5a45512b63f99732ed09d02b84db9cf9dfd14 100644 (file)
@@ -115,14 +115,15 @@ typedef u32_t               mem_ptr_t;
 #define LWIP_CHKSUM_ALGORITHM 2
 #endif
 
-#ifdef LWIP_DEBUG
+/* this is used for 1) displaying statistics and 2) lwip debugging (set appropriate debugging level in lwipopts.h) */
+//#ifdef LWIP_DEBUG
 
 extern int32_t rpp_sci_printf(const char* format, ...);
 #define LWIP_PLATFORM_DIAG(expr)        rpp_sci_printf expr
 
-#else
-#define LWIP_PLATFORM_DIAG(expr)
-#endif
+//#else
+//#define LWIP_PLATFORM_DIAG(expr)
+//#endif
 
 //#define DEBUG
 #ifdef DEBUG
@@ -132,8 +133,8 @@ extern int32_t rpp_sci_printf(const char* format, ...);
   LWIP_PLATFORM_DIAG(message); } while(0)
 
 //extern void __error__(char *pcFilename, unsigned long ulLine);
-extern int32_t rpp_sci_printkb(const char* format, ...);
-#define LWIP_PLATFORM_ASSERT(expr)      rpp_sci_printkb((const char *) expr)
+extern int32_t rpp_sci_printk(const char* format, ...);
+#define LWIP_PLATFORM_ASSERT(expr)      rpp_sci_printk((const char *) expr)
 /*
 {                                       \
     if(!(expr))                         \
index 896bae1af0605c2d96e77eb8c2da30bf658e33be..91edd3cd329040af5139a498282bd23d7dc0a2b1 100644 (file)
 /**
  * PBUF_DEBUG: Enable debugging in pbuf.c.
  */
-#define PBUF_DEBUG                      LWIP_DBG_ON | ALL_DBG_ON
+#define PBUF_DEBUG                      LWIP_DBG_OFF | ALL_DBG_ON
 
 /**
  * API_LIB_DEBUG: Enable debugging in api_lib.c.