# HG changeset patch # User gthomas # Date 1024090531 0 # Node ID 6882949455d7ca0c970e1870caf2fe840efe5441 # Parent 3ef90475a3474841b1d7cc492a765a02daa3e914 Fix compile error when CYGDBG_NET_TIMING_STATS enabled diff --git a/packages/net/bsd_tcpip/current/ChangeLog b/packages/net/bsd_tcpip/current/ChangeLog --- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2002-06-14 Gary Thomas + + * src/ecos/support.c: + Fix compile errors when CYGDBG_NET_TIMING_STATS enabled. + 2002-06-05 Gary Thomas * include/netinet/in.h: Rename 'ip_opts' field (using the same diff --git a/packages/net/bsd_tcpip/current/src/ecos/support.c b/packages/net/bsd_tcpip/current/src/ecos/support.c --- 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);