summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-01-18 16:11:30 +0100
committerChristoph Hellwig <hch@lst.de>2015-01-20 19:43:23 +0100
commit63c6ea173471e926e9739288a5aefac3cb827e15 (patch)
tree0068cd62ff629fda44c577a8f580f9bd087c3ecf /drivers/scsi
parent2fc583c4628bf782e62d0c66d57c5de040fac451 (diff)
ch: remove debug noise in ch_do_scsi
The midlayer logging already prints the cdb details if the logging level is high enough, no need to duplicate this in the ch driver. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: James Bottomley <JBottomley@Parallels.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ch.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c
index 79e462feae0a..0045742fab7d 100644
--- a/drivers/scsi/ch.c
+++ b/drivers/scsi/ch.c
@@ -194,18 +194,10 @@ ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len,
retry:
errno = 0;
- if (debug) {
- char logbuf[SCSI_LOG_BUFSIZE];
-
- __scsi_format_command(logbuf, sizeof(logbuf), cmd, cmd_len);
- DPRINTK("command: %s", logbuf);
- }
-
result = scsi_execute_req(ch->device, cmd, direction, buffer,
buflength, &sshdr, timeout * HZ,
MAX_RETRIES, NULL);
- DPRINTK("result: 0x%x\n",result);
if (driver_byte(result) & DRIVER_SENSE) {
if (debug)
scsi_print_sense_hdr(ch->device, ch->name, &sshdr);