ata: Guard ata_scsi_dump_cdb() by ATA_VERBOSE_DEBUG
authorPaul Menzel <pmenzel@molgen.mpg.de>
Sun, 8 Jul 2018 07:11:34 +0000 (09:11 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 12 Jul 2018 20:05:33 +0000 (13:05 -0700)
Defining `ATA_DEBUG` nothing can be really seen, as the log is spammed
with CDB messages.

Therefore, guard the print by `ATA_VERBOSE_DEBUG`.

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c

index 6a91d04351d9b64d20251febd070ad28bfb3eb38..980190c9eb48896ab0d88a6c2ad9afa4fdab200c 100644 (file)
@@ -4288,10 +4288,10 @@ static inline ata_xlat_func_t ata_get_xlat_func(struct ata_device *dev, u8 cmd)
 static inline void ata_scsi_dump_cdb(struct ata_port *ap,
                                     struct scsi_cmnd *cmd)
 {
-#ifdef ATA_DEBUG
+#ifdef ATA_VERBOSE_DEBUG
        struct scsi_device *scsidev = cmd->device;
 
-       DPRINTK("CDB (%u:%d,%d,%lld) %9ph\n",
+       VPRINTK("CDB (%u:%d,%d,%lld) %9ph\n",
                ap->print_id,
                scsidev->channel, scsidev->id, scsidev->lun,
                cmd->cmnd);