Mercurial > ecos
changeset 218:6882949455d7
Fix compile error when CYGDBG_NET_TIMING_STATS enabled
| author | gthomas |
|---|---|
| date | Fri, 14 Jun 2002 21:35:31 +0000 |
| parents | 3ef90475a347 |
| children | ae8511176102 |
| files | packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/ecos/support.c |
| diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2002-06-14 Gary Thomas <gary@chez-thomas.org> + + * src/ecos/support.c: + Fix compile errors when CYGDBG_NET_TIMING_STATS enabled. + 2002-06-05 Gary Thomas <gary@chez-thomas.org> * include/netinet/in.h: Rename 'ip_opts' field (using the same
--- a/packages/net/bsd_tcpip/current/src/ecos/support.c +++ b/packages/net/bsd_tcpip/current/src/ecos/support.c @@ -193,8 +193,8 @@ cyg_net_malloc(u_long size, int type, in { void *res; + START_STATS(); log(LOG_MDEBUG, "Net malloc[%d] = ", size); - START_STATS(); if (flags & M_NOWAIT) { res = cyg_mempool_var_try_alloc(net_mem, size); } else { @@ -218,8 +218,8 @@ cyg_net_mbuf_alloc(int type, int flags) { void *res; + START_STATS(); log(LOG_MDEBUG, "Alloc mbuf = "); - START_STATS(); mbstat.m_mbufs++; if (flags & M_NOWAIT) { res = cyg_mempool_fix_try_alloc(net_mbufs); @@ -247,8 +247,9 @@ void * cyg_net_cluster_alloc(void) { void *res; + + START_STATS(); log(LOG_MDEBUG, "Allocate cluster = "); - START_STATS(); res = cyg_mempool_fix_try_alloc(net_clusters); FINISH_STATS(stats_cluster_alloc); log(LOG_MDEBUG, "%p\n", res);
