Fixed default values of some stats to only be enabled if used Fixes bug #27338: sys_stats is defined when NO_SYS = 1

This commit is contained in:
goldsimon 2009-10-09 20:18:15 +00:00
parent 1309e5e86f
commit c0e22c255c
2 changed files with 7 additions and 3 deletions

View File

@ -43,6 +43,10 @@ HISTORY
++ Bugfixes: ++ Bugfixes:
2009-10-09 Simon Goldschmidt
* opt.h: Fixed default values of some stats to only be enabled if used
Fixes bug #27338: sys_stats is defined when NO_SYS = 1
2009-08-30 Simon Goldschmidt 2009-08-30 Simon Goldschmidt
* ip.c: Fixed bug bug #27345: "ip_frag() does not use the LWIP_NETIF_LOOPBACK * ip.c: Fixed bug bug #27345: "ip_frag() does not use the LWIP_NETIF_LOOPBACK
function" by checking for loopback before calling ip_frag function" by checking for loopback before calling ip_frag

View File

@ -1339,21 +1339,21 @@
* MEM_STATS==1: Enable mem.c stats. * MEM_STATS==1: Enable mem.c stats.
*/ */
#ifndef MEM_STATS #ifndef MEM_STATS
#define MEM_STATS 1 #define MEM_STATS ((MEM_LIBC_MALLOC == 0) && (MEM_USE_POOLS == 0))
#endif #endif
/** /**
* MEMP_STATS==1: Enable memp.c pool stats. * MEMP_STATS==1: Enable memp.c pool stats.
*/ */
#ifndef MEMP_STATS #ifndef MEMP_STATS
#define MEMP_STATS 1 #define MEMP_STATS (MEMP_MEM_MALLOC == 0)
#endif #endif
/** /**
* SYS_STATS==1: Enable system stats (sem and mbox counts, etc). * SYS_STATS==1: Enable system stats (sem and mbox counts, etc).
*/ */
#ifndef SYS_STATS #ifndef SYS_STATS
#define SYS_STATS 1 #define SYS_STATS (NO_SYS == 0)
#endif #endif
#else #else