This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Cosmetics: FreeBSD stack still prints logs when logging is off
- From: "Alexander Aganichev" <aaganichev at gmail dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Mon, 18 Jun 2007 17:06:59 +0400
- Subject: Cosmetics: FreeBSD stack still prints logs when logging is off
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fECE3F2hDIkv4Z2bQ3sky3/lNQBx1Py0qvB7jNQ+HGuQ0M/6xguRvLnOnQQ083HfbkSiO59IOf0dwSPgo9WW9FvluZu/cIG1FCoAI5MHRKW2Mkbp8Z21lrgp9nICTSa6AKRkIgJ0Ybsn+5B9l+Ndo1MB8OcGXmOYjy/yBVB7m24=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=urzCgQ0sBEcc8XNn083s3mlt/Hago//65pjkgh8e+79NPB88ZAxw71ww8lkoJNELAblwJ7a6pYB0N/gYoZ6hwBE46b5Otazp01f1SyApYcewzi7xz3HzljUN5R0xtjS6LvyTlCYeSAcNI11ftchguSN/LYoixSWoYrWHPYep9XI=
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