This is the mail archive of the ecos-patches@sourceware.org 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]

Cosmetics: FreeBSD stack still prints logs when logging is off


This small patch fixes cosmetics on console when
CYGPKG_NET_FREEBSD_LOGGING is not defined:

Index: packages/net/bsd_tcpip/current/include/sys/param.h
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/include/sys/param.h,v
retrieving revision 1.9
diff -u -r1.9 param.h
--- packages/net/bsd_tcpip/current/include/sys/param.h	4 Nov 2005
10:37:05 -0000	1.9
+++ packages/net/bsd_tcpip/current/include/sys/param.h	14 Jun 2007
13:58:13 -0000
@@ -1040,7 +1040,7 @@
#else
#define log(lvl, args...)
#define log_dump(lvl, buf, len)
-#define log_(lvl)
+#define log_(lvl) if (0)
#endif

#endif // _KERNEL

--
WBR, Alexander


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