Re: svn commit: r199018 - head/sys/dev/wpi

[ Available lists | Index of svn-src-all | Month of Nov 2009 | Week of 7 Nov 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Sam Leffler <sam@freebsd.org>
Date
7 Nov 2009 19:00:24
Subject
Re: svn commit: r199018 - head/sys/dev/wpi
Message-ID
4AF5C3C7.1020806@freebsd.org


[ Hide this part ]
Doug Barton wrote:
> Author: dougb
> Date: Sat Nov 7 18:42:53 2009
> New Revision: 199018
> URL: http://svn.freebsd.org/changeset/base/199018
>
> Log:
> Turn off WPI_DEBUG by default as the driver seems sufficiently stable
> at this point.
>
> Reviewed by: benjsc, thompsa
>
> Modified:
> head/sys/dev/wpi/if_wpi.c
>
> Modified: head/sys/dev/wpi/if_wpi.c
> ==============================================================================
> --- head/sys/dev/wpi/if_wpi.c Sat Nov 7 17:29:03 2009 (r199017)
> +++ head/sys/dev/wpi/if_wpi.c Sat Nov 7 18:42:53 2009 (r199018)
> @@ -103,8 +103,6 @@ __FBSDID("$FreeBSD$");
> #include <dev/wpi/if_wpireg.h>
> #include <dev/wpi/if_wpivar.h>
>
> -#define WPI_DEBUG
> -
> #ifdef WPI_DEBUG
> #define DPRINTF(x) do { if (wpi_debug != 0) printf x; } while (0)
> #define DPRINTFN(n, x) do { if (wpi_debug & n) printf x; } while (0)
>
>

The right thing to do is to set wpi_debug to 0 and leave the messages
compiled in.

Sam


Elapsed time: 0.145 seconds