/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2003 Silicon Graphics International Corp.4* All rights reserved.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions, and the following disclaimer,11* without modification.12* 2. Redistributions in binary form must reproduce at minimum a disclaimer13* substantially similar to the "NO WARRANTY" disclaimer below14* ("Disclaimer") and any redistribution must be conditioned upon15* including a substantially similar Disclaimer requirement for further16* binary redistribution.17*18* NO WARRANTY19* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS20* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT21* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR22* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT23* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL24* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS25* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)26* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,27* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING28* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE29* POSSIBILITY OF SUCH DAMAGES.30*31* $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_debug.h#2 $32*/33/*34* CAM Target Layer debugging interface.35*36* Author: Ken Merry <[email protected]>37*/3839#ifndef _CTL_DEBUG_H_40#define _CTL_DEBUG_H_4142/*43* Debugging flags.44*/45typedef enum {46CTL_DEBUG_NONE = 0x00, /* no debugging */47CTL_DEBUG_INFO = 0x01, /* SCSI errors */48CTL_DEBUG_CDB = 0x02, /* SCSI CDBs and tasks */49CTL_DEBUG_CDB_DATA = 0x04 /* SCSI CDB DATA */50} ctl_debug_flags;5152#ifdef CAM_CTL_DEBUG53#define CTL_DEBUG_PRINT(X) \54do { \55printf("ctl_debug: "); \56printf X; \57} while (0)58#else /* CAM_CTL_DEBUG */59#define CTL_DEBUG_PRINT(X)60#endif /* CAM_CTL_DEBUG */6162#endif /* _CTL_DEBUG_H_ */636465