mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-15 22:49:16 +00:00
stats.h: Fix some build bugs introduced with patch #6483 (missing some parameters in macros, mainly if MEM_STATS=0 and MEMP_STATS=0).
This commit is contained in:
parent
f6a28808e3
commit
8367feafa9
@ -47,6 +47,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2008-07-08 Frédéric Bernon
|
||||||
|
* stats.h: Fix some build bugs introduced with patch #6483 (missing some parameters
|
||||||
|
in macros, mainly if MEM_STATS=0 and MEMP_STATS=0).
|
||||||
|
|
||||||
2008-06-24 Jonathan Larmour
|
2008-06-24 Jonathan Larmour
|
||||||
* tcp_in.c: Fix for bug #23693 as suggested by Art R. Ensure cseg is unused
|
* tcp_in.c: Fix for bug #23693 as suggested by Art R. Ensure cseg is unused
|
||||||
if tcp_seg_copy fails.
|
if tcp_seg_copy fails.
|
||||||
|
@ -154,6 +154,7 @@ extern struct stats_ lwip_stats;
|
|||||||
#define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP")
|
#define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP")
|
||||||
#else
|
#else
|
||||||
#define TCP_STATS_INC(x)
|
#define TCP_STATS_INC(x)
|
||||||
|
#define TCP_STATS_DISPLAY()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if UDP_STATS
|
#if UDP_STATS
|
||||||
@ -223,10 +224,10 @@ extern struct stats_ lwip_stats;
|
|||||||
#define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
|
#define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
|
||||||
#define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
|
#define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
|
||||||
#else
|
#else
|
||||||
#define MEM_STATS_AVAIL(x)
|
#define MEM_STATS_AVAIL(x, y)
|
||||||
#define MEM_STATS_INC(x)
|
#define MEM_STATS_INC(x)
|
||||||
#define MEM_STATS_INC_USED(x)
|
#define MEM_STATS_INC_USED(x, y)
|
||||||
#define MEM_STATS_DEC_USED(x)
|
#define MEM_STATS_DEC_USED(x, y)
|
||||||
#define MEM_STATS_DISPLAY()
|
#define MEM_STATS_DISPLAY()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -241,11 +242,11 @@ extern struct stats_ lwip_stats;
|
|||||||
} while(0)
|
} while(0)
|
||||||
#define MEMP_STATS_DISPLAY(i) stats_display_memp(&lwip_stats.memp[i], i)
|
#define MEMP_STATS_DISPLAY(i) stats_display_memp(&lwip_stats.memp[i], i)
|
||||||
#else
|
#else
|
||||||
#define MEMP_STATS_AVAIL(x)
|
#define MEMP_STATS_AVAIL(x, i, y)
|
||||||
#define MEMP_STATS_INC(x)
|
#define MEMP_STATS_INC(x, i)
|
||||||
#define MEMP_STATS_DEC(x)
|
#define MEMP_STATS_DEC(x, i)
|
||||||
#define MEMP_STATS_INC_USED(x)
|
#define MEMP_STATS_INC_USED(x, i)
|
||||||
#define MEMP_STATS_DISPLAY()
|
#define MEMP_STATS_DISPLAY(i)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SYS_STATS
|
#if SYS_STATS
|
||||||
|
Loading…
Reference in New Issue
Block a user