aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_ioctl.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 08:26:45 -0400
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:15:58 -0500
commitd811b848ebb78a1135658aa20a80e31994df47f7 (patch)
tree6393a9ce22d3cb9bbca4ac09d9280a4c835cb482 /drivers/scsi/scsi_ioctl.c
parent22e0d994151c3eac183625f8c1400c0c83ac414f (diff)
scsi: use sdev as argument for sense code printing
We should be using the standard dev_printk() variants for sense code printing. [hch: remove __scsi_print_sense call in xen-scsiback, Acked by Juergen] [hch: folded bracing fix from Dan Carpenter] Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/scsi_ioctl.c')
-rw-r--r--drivers/scsi/scsi_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c
index 12fe676d1343..5207274574f5 100644
--- a/drivers/scsi/scsi_ioctl.c
+++ b/drivers/scsi/scsi_ioctl.c
@@ -126,7 +126,7 @@ static int ioctl_internal_command(struct scsi_device *sdev, char *cmd,
126 sdev_printk(KERN_INFO, sdev, 126 sdev_printk(KERN_INFO, sdev,
127 "ioctl_internal_command return code = %x\n", 127 "ioctl_internal_command return code = %x\n",
128 result); 128 result);
129 scsi_print_sense_hdr(" ", &sshdr); 129 scsi_print_sense_hdr(sdev, NULL, &sshdr);
130 break; 130 break;
131 } 131 }
132 } 132 }