diff options
Diffstat (limited to 'drivers/scsi/scsi_logging.h')
-rw-r--r-- | drivers/scsi/scsi_logging.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_logging.h b/drivers/scsi/scsi_logging.h index e1722ba94586..a3e2af6a846c 100644 --- a/drivers/scsi/scsi_logging.h +++ b/drivers/scsi/scsi_logging.h | |||
@@ -45,10 +45,12 @@ extern unsigned int scsi_logging_level; | |||
45 | ((scsi_logging_level >> (SHIFT)) & ((1 << (BITS)) - 1)) | 45 | ((scsi_logging_level >> (SHIFT)) & ((1 << (BITS)) - 1)) |
46 | 46 | ||
47 | #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \ | 47 | #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \ |
48 | { \ | 48 | do { \ |
49 | if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \ | 49 | if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \ |
50 | (CMD); \ | 50 | do { \ |
51 | } | 51 | CMD; \ |
52 | } while (0); \ | ||
53 | } while (0) | ||
52 | #else | 54 | #else |
53 | #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) | 55 | #define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) |
54 | #endif /* CONFIG_SCSI_LOGGING */ | 56 | #endif /* CONFIG_SCSI_LOGGING */ |