aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas/mpt3sas_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mpt3sas/mpt3sas_debug.h')
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_debug.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_debug.h b/drivers/scsi/mpt3sas/mpt3sas_debug.h
index 4e8a63fdb304..cceeb2c16e64 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_debug.h
+++ b/drivers/scsi/mpt3sas/mpt3sas_debug.h
@@ -68,20 +68,11 @@
68#define MPT_DEBUG_TRIGGER_DIAG 0x00200000 68#define MPT_DEBUG_TRIGGER_DIAG 0x00200000
69 69
70 70
71/*
72 * CONFIG_SCSI_MPT3SAS_LOGGING - enabled in Kconfig
73 */
74
75#ifdef CONFIG_SCSI_MPT3SAS_LOGGING
76#define MPT_CHECK_LOGGING(IOC, CMD, BITS) \ 71#define MPT_CHECK_LOGGING(IOC, CMD, BITS) \
77{ \ 72{ \
78 if (IOC->logging_level & BITS) \ 73 if (IOC->logging_level & BITS) \
79 CMD; \ 74 CMD; \
80} 75}
81#else
82#define MPT_CHECK_LOGGING(IOC, CMD, BITS)
83#endif /* CONFIG_SCSI_MPT3SAS_LOGGING */
84
85 76
86/* 77/*
87 * debug macros 78 * debug macros
@@ -153,7 +144,7 @@
153 144
154 145
155/* inline functions for dumping debug data*/ 146/* inline functions for dumping debug data*/
156#ifdef CONFIG_SCSI_MPT3SAS_LOGGING 147
157/** 148/**
158 * _debug_dump_mf - print message frame contents 149 * _debug_dump_mf - print message frame contents
159 * @mpi_request: pointer to message frame 150 * @mpi_request: pointer to message frame
@@ -211,10 +202,5 @@ _debug_dump_config(void *mpi_request, int sz)
211 } 202 }
212 pr_info("\n"); 203 pr_info("\n");
213} 204}
214#else
215#define _debug_dump_mf(mpi_request, sz)
216#define _debug_dump_reply(mpi_request, sz)
217#define _debug_dump_config(mpi_request, sz)
218#endif /* CONFIG_SCSI_MPT3SAS_LOGGING */
219 205
220#endif /* MPT3SAS_DEBUG_H_INCLUDED */ 206#endif /* MPT3SAS_DEBUG_H_INCLUDED */