]> granicus.if.org Git - esp-idf/commitdiff
components: lwip - enable PERF macro for debug reason
authorliuzhifu <liuzhifu@espressif.com>
Tue, 30 Aug 2016 10:06:37 +0000 (18:06 +0800)
committerliuzhifu <liuzhifu@espressif.com>
Tue, 30 Aug 2016 10:06:37 +0000 (18:06 +0800)
components/lwip/api/tcpip.c
components/lwip/include/lwip/port/lwipopts.h
components/lwip/port/netif/wlanif.c

index f0c4c476e7d9cd41b9943f024d19b4a87e101b3e..9df3c38a1d07602e4ba6a3025589911217b28cfe 100755 (executable)
@@ -62,7 +62,7 @@ static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__;
 
 /* global variables */
 #ifdef PERF
-uint32 g_rx_post_mbox_fail_cnt = 0;
+uint32_t g_rx_post_mbox_fail_cnt = 0;
 #endif
 static tcpip_init_done_fn tcpip_init_done;
 static void *tcpip_init_done_arg;
index c819b8d889aeadfe5d9e2ff3f93d15ab6bd53f07..122fea3157daaeda276c5f201b0c362d5ae15de6 100755 (executable)
@@ -221,6 +221,7 @@ extern unsigned long os_random(void);
  * TCP_WND: The size of a TCP window.  This must be at least
  * (2 * TCP_MSS) for things to work well
  */
+#define PERF 1
 #ifdef PERF
 extern unsigned char misc_prof_get_tcpw(void);
 extern unsigned char misc_prof_get_tcp_snd_buf(void);
index 0b87656c8b7faf09308baaf4c8c35751dc785dfb..9832c41aff0fd3863d62c60f9296d03bc1f235c6 100755 (executable)
@@ -66,7 +66,7 @@ static char hostname[16];
 static char hostname[16];
 #endif
 #ifdef PERF
-uint32 g_rx_alloc_pbuf_fail_cnt = 0;
+uint32_t g_rx_alloc_pbuf_fail_cnt = 0;
 #endif
 
 /**