This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Cosmetics: FreeBSD stack still prints logs when logging is off
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Alexander Aganichev <aaganichev at gmail dot com>
- Cc: ecos-patches at ecos dot sourceware dot org
- Date: Sun, 8 Jul 2007 21:19:29 +0200
- Subject: Re: Cosmetics: FreeBSD stack still prints logs when logging is off
- References: <c25335bc0706180606q74f1d95dv66cf7e5ac11e8f5@mail.gmail.com>
On Mon, Jun 18, 2007 at 05:06:59PM +0400, Alexander Aganichev wrote:
> 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
Thanks. I have committed it along with a ChangeLog entry.
Andrew