Subject: Re: SCSIDEBUG not working?
To: Greywolf <greywolf@starwolf.com>
From: Todd Vierling <tv@wasabisystems.com>
List: port-sparc
Date: 12/03/2000 13:18:48
On Sun, 3 Dec 2000, Greywolf wrote:

: #define DEBUGTYPE	BUS_ATAPI
: #define DEBUGTARGET	-1	/* disable yadda yadda yadda comment */
: 
: /* The following are to preserve the original values to revert when done */
: 
: #undef DEBUGTYPE
: #undef DEBUGTARGET
: #define DEBUGTYPE	BUS_SCSI
: #define DEBUGTARGET	4

: :../../../../dev/scsipi/scsipi_debug.h:18: warning: `DEBUGTYPE' redefined
: :../../../../dev/scsipi/scsipi_debug.h:26: warning: this is the location of
: :the previous definition
: :../../../../dev/scsipi/scsipi_debug.h:20: warning: `DEBUGTARGET' redefined
: :../../../../dev/scsipi/scsipi_debug.h:27: warning: this is the location of
: :the previous definition

scsipi_debug does not have multiple inclusion protection, and was included
twice.  The "previous definition" was the second definition, first reading
of the file.  The "redefinition" was the first definition, second reading.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.