]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/cc.h
support print for lwip statistics does not depend on LWIP_DEBUG define anymore
[pes-rpp/rpp-lwip.git] / src / include / arch / cc.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))                         \