memp: fixed compiling various combinations of memp stats (display etc.)

This commit is contained in:
goldsimon
2016-07-08 08:21:57 +02:00
parent a463119597
commit 959042aa88
4 changed files with 8 additions and 8 deletions

View File

@@ -245,9 +245,9 @@ memp_init(void)
memp_pools[i]->stats->illegal = 0;
memp_pools[i]->stats->avail = memp_pools[i]->num;
#ifdef LWIP_DEBUG
#if defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY
memp_pools[i]->stats->name = memp_pools[i]->desc;
#endif /* LWIP_DEBUG */
#endif /* defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY */
#if LWIP_STATS
lwip_stats.memp[i] = memp_pools[i]->stats;

View File

@@ -116,7 +116,7 @@ void
stats_display_memp(struct stats_mem *mem, int index)
{
if (index < MEMP_MAX) {
stats_display_mem(mem, memp_names[index]);
stats_display_mem(mem, mem->name);
}
}
#endif /* MEMP_STATS */