This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change printf(...) to log(LOG_INIT,...)


On Mittwoch, 15. Oktober 2003 15:36, Gary Thomas wrote:
> On Wed, 2003-10-15 at 07:32, Roland Caßebohm wrote:
> > 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.
>
> Did you mean to send a patch?

I always forget this :-(

Roland
-- 

___________________________________________________

VS Vision Systems GmbH, Industrial Image Processing
Dipl.-Ing. Roland Caßebohm
Aspelohe 27A, D-22848 Norderstedt, Germany
http://www.visionsystems.de
___________________________________________________

Index: packages/net/bsd_tcpip/current//ChangeLog
===================================================================
RCS file: /home/cassebohm/net/USERS/CVSROOT/VSprojects/ecos/packages/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.1.1.1
diff -u -5 -p -r1.1.1.1 ChangeLog
--- packages/net/bsd_tcpip/current//ChangeLog	29 Sep 2003 15:15:30 -0000	1.1.1.1
+++ packages/net/bsd_tcpip/current//ChangeLog	15 Oct 2003 13:21:55 -0000
@@ -1,5 +1,10 @@
+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
 	cyg_net_mbuf_alloc, to avoid a (blocking) call to alloc method of mempool 
 	during interrupts. This problem occurred under heavy IP traffic in case the 
Index: packages/net/bsd_tcpip/current//src/sys/net/if.c
===================================================================
RCS file: /home/cassebohm/net/USERS/CVSROOT/VSprojects/ecos/packages/net/bsd_tcpip/current/src/sys/net/if.c,v
retrieving revision 1.1.1.1
diff -u -5 -p -r1.1.1.1 if.c
--- packages/net/bsd_tcpip/current//src/sys/net/if.c	29 Sep 2003 15:15:32 -0000	1.1.1.1
+++ packages/net/bsd_tcpip/current//src/sys/net/if.c	15 Oct 2003 13:12:37 -0000
@@ -125,11 +125,11 @@ ifinit(dummy)
 	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);
 	if_slowtimo(0);
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]