Mercurial > flash_v2
diff packages/io/eth/current/src/net/eth_drv.c @ 828:a6926bb063e1
* src/net/eth_drv.c: Added calls to cyg_net_show_mbufs() whenever
we see an out-of-mbufs problem.
| author | nickg |
|---|---|
| date | Mon, 17 Mar 2003 18:37:21 +0000 |
| parents | e2b797ca39b4 |
| children | b56e22bed6a2 |
line wrap: on
line diff
--- a/packages/io/eth/current/src/net/eth_drv.c +++ b/packages/io/eth/current/src/net/eth_drv.c @@ -819,6 +819,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS START_CONSOLE(); diag_printf("warning: eth_recv out of MBUFs\n"); +#ifdef CYGDBG_NET_SHOW_MBUFS + cyg_net_show_mbufs(); +#endif END_CONSOLE(); #endif } @@ -854,6 +857,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS START_CONSOLE(); diag_printf("out of MBUFs [2]"); +#ifdef CYGDBG_NET_SHOW_MBUFS + cyg_net_show_mbufs(); +#endif END_CONSOLE(); #endif sg_list[sg_len].buf = (CYG_ADDRESS)0; @@ -872,6 +878,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS START_CONSOLE(); diag_printf("warning: eth_recv out of MBUFs\n"); +#ifdef CYGDBG_NET_SHOW_MBUFS + cyg_net_show_mbufs(); +#endif END_CONSOLE(); #endif sg_list[sg_len].buf = (CYG_ADDRESS)0;
