mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
fix up stats_display which was added in previous commit
This commit is contained in:
parent
d36b723056
commit
d27448da8a
@ -47,7 +47,7 @@ stats_init(void)
|
|||||||
{
|
{
|
||||||
memset(&lwip_stats, 0, sizeof(struct stats_));
|
memset(&lwip_stats, 0, sizeof(struct stats_));
|
||||||
}
|
}
|
||||||
|
#if LWIP_STATS_DISPLAY
|
||||||
void
|
void
|
||||||
stats_display_proto(struct stats_proto *proto, char *name)
|
stats_display_proto(struct stats_proto *proto, char *name)
|
||||||
{
|
{
|
||||||
@ -109,6 +109,6 @@ stats_display(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif /* LWIP_STATS_DISPLAY */
|
||||||
#endif /* LWIP_STATS */
|
#endif /* LWIP_STATS */
|
||||||
|
|
||||||
|
@ -356,6 +356,10 @@ a lot of data that needs to be copied, this should be set high. */
|
|||||||
|
|
||||||
#if LWIP_STATS
|
#if LWIP_STATS
|
||||||
|
|
||||||
|
#ifndef LWIP_STATS_DISPLAY
|
||||||
|
#define LWIP_STATS_DISPLAY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef LINK_STATS
|
#ifndef LINK_STATS
|
||||||
#define LINK_STATS 1
|
#define LINK_STATS 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -144,6 +144,11 @@ void stats_init(void);
|
|||||||
#define LINK_STATS_INC(x)
|
#define LINK_STATS_INC(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Display of statistics */
|
||||||
|
#if LWIP_STATS_DISPLAY
|
||||||
|
void stats_display(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __LWIP_STATS_H__ */
|
#endif /* __LWIP_STATS_H__ */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user