Mercurial > ecos
changeset 1310:4b6a66529f20
Control/suppress some debug init messages - Roland Caßebohm
| author | gthomas |
|---|---|
| date | Wed, 15 Oct 2003 13:48:28 +0000 |
| parents | 3df2f6e515f7 |
| children | e3df0ec06a22 |
| files | packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/sys/net/if.c |
| diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2003-10-15 Roland Cassebohm <roland.cassebohm@visionsystems.de> + + * src/sys/net/if.c (ifinit): Change printf(...) to log(LOG_INIT,...) to + make it possible to disable output while initialization. + 2003-09-17 Reinhard Jessich <Reinhard.Jessich@frequentis.com> * src/sys/kern/uipc_mbuf.c: Now using flags (how) argument in call to
--- a/packages/net/bsd_tcpip/current/src/sys/net/if.c +++ b/packages/net/bsd_tcpip/current/src/sys/net/if.c @@ -122,14 +122,16 @@ void ifinit(dummy) void *dummy; { +#ifdef DEBUG_IFINIT struct ifnet *ifp; int s; s = splimp(); for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next) { - printf("IFP: %p, next: %p\n", ifp, ifp->if_link.tqe_next); + log(LOG_INIT, "IFP: %p, next: %p\n", ifp, ifp->if_link.tqe_next); } splx(s); +#endif if_slowtimo(0); }
