linux/drivers/scsi/mpi3mr/mpi3mr_debug.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Driver for Broadcom MPI3 Storage Controllers
 *
 * Copyright (C) 2017-2023 Broadcom Inc.
 *  (mailto: [email protected])
 *
 */

#ifndef MPI3SAS_DEBUG_H_INCLUDED

#define MPI3SAS_DEBUG_H_INCLUDED

/*
 * debug levels
 */

#define MPI3_DEBUG_EVENT
#define MPI3_DEBUG_EVENT_WORK_TASK
#define MPI3_DEBUG_INIT
#define MPI3_DEBUG_EXIT
#define MPI3_DEBUG_TM
#define MPI3_DEBUG_RESET
#define MPI3_DEBUG_SCSI_ERROR
#define MPI3_DEBUG_REPLY
#define MPI3_DEBUG_CFG_ERROR
#define MPI3_DEBUG_TRANSPORT_ERROR
#define MPI3_DEBUG_BSG_ERROR
#define MPI3_DEBUG_BSG_INFO
#define MPI3_DEBUG_SCSI_INFO
#define MPI3_DEBUG_CFG_INFO
#define MPI3_DEBUG_TRANSPORT_INFO
#define MPI3_DEBUG
#define MPI3_DEBUG_SG


/*
 * debug macros
 */

#define ioc_err(ioc, fmt, ...)
#define ioc_notice(ioc, fmt, ...)
#define ioc_warn(ioc, fmt, ...)
#define ioc_info(ioc, fmt, ...)

#define dprint(ioc, fmt, ...)

#define dprint_event_th(ioc, fmt, ...)

#define dprint_event_bh(ioc, fmt, ...)

#define dprint_init(ioc, fmt, ...)

#define dprint_exit(ioc, fmt, ...)

#define dprint_tm(ioc, fmt, ...)

#define dprint_reply(ioc, fmt, ...)

#define dprint_reset(ioc, fmt, ...)

#define dprint_scsi_info(ioc, fmt, ...)

#define dprint_scsi_err(ioc, fmt, ...)

#define dprint_scsi_command(ioc, SCMD, LOG_LEVEL)


#define dprint_bsg_info(ioc, fmt, ...)

#define dprint_bsg_err(ioc, fmt, ...)

#define dprint_cfg_info(ioc, fmt, ...)

#define dprint_cfg_err(ioc, fmt, ...)
#define dprint_transport_info(ioc, fmt, ...)

#define dprint_transport_err(ioc, fmt, ...)

#endif /* MPT3SAS_DEBUG_H_INCLUDED */

/**
 * dprint_dump - print contents of a memory buffer
 * @req: Pointer to a memory buffer
 * @sz: Memory buffer size
 * @namestr: Name String to identify the buffer type
 */
static inline void
dprint_dump(void *req, int sz, const char *name_string)
{}

/**
 * dprint_dump_req - print message frame contents
 * @req: pointer to message frame
 * @sz: number of dwords
 */
static inline void
dprint_dump_req(void *req, int sz)
{}