diff --git a/CHANGELOG b/CHANGELOG index 91231db3..cf2d2a25 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -67,6 +67,10 @@ HISTORY ++ Bug fixes: + 2007-03-20 Frédéric Bernon + * memp.h, stats.c: Fix stats_display function where memp_names table wasn't + synchronized with memp.h. + 2007-03-20 Frédéric Bernon * tcpip.c: Initialize tcpip's mbox, and verify if initialized in tcpip_input, tcpip_ethinput, tcpip_callback, tcpip_apimsg, to fix a init problem with diff --git a/src/core/stats.c b/src/core/stats.c index d5b37406..b1b45b36 100644 --- a/src/core/stats.c +++ b/src/core/stats.c @@ -95,8 +95,22 @@ void stats_display(void) { s16_t i; - char * memp_names[] = {"PBUF", "RAW_PCB", "UDP_PCB", "TCP_PCB", "TCP_PCB_LISTEN", - "TCP_SEG", "NETBUF", "NETCONN", "API_MSG", "TCP_MSG", "TIMEOUT"}; + char * memp_names[] = { + "PBUF", + "RAW_PCB", + "UDP_PCB", + "TCP_PCB", + "TCP_PCB_LISTEN", + "TCP_SEG", + "NETBUF", + "NETCONN", + "TCPIP_MSG", + #if ARP_QUEUEING + "ARP_QUEUE", + #endif + "SYS_TIMEOUT" + }; + stats_display_proto(&lwip_stats.link, "LINK"); stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG"); stats_display_proto(&lwip_stats.ip, "IP"); diff --git a/src/include/lwip/memp.h b/src/include/lwip/memp.h index cabf84ef..a9eeb0c2 100644 --- a/src/include/lwip/memp.h +++ b/src/include/lwip/memp.h @@ -35,6 +35,7 @@ #include "lwip/opt.h" +// If you change this enum, think to update memp_names in stats_display (stats.c) typedef enum { MEMP_PBUF, MEMP_RAW_PCB,