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]

Re: Cosmetics: FreeBSD stack still prints logs when logging is off


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


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