summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 14:27:03 +0200
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:16:07 +0100
commita3a790dcb2f4dc1d8ebcaa4bf87773b9c6a13174 (patch)
treedec92b3bd6f774ceba37b8170c676fea1c12c2ec /drivers/scsi/scsi_error.c
parenta222b1e2fe4299a01c86ea8ccafbf0a05aeaa5a1 (diff)
downloadlinux-a3a790dcb2f4dc1d8ebcaa4bf87773b9c6a13174.tar.bz2
scsi: use shost argument in scsi_eh_prt_fail_stats
The EH statistics are per host, so we should be using shost_printk() here. Signed-off-by: Hannes Reinecke <hare@suse.de> Suggested-by: Robert Elliott <elliott@hp.com> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index c2bef46e90e0..44e2576878a3 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -355,7 +355,7 @@ static inline void scsi_eh_prt_fail_stats(struct Scsi_Host *shost,
if (cmd_cancel || cmd_failed) {
SCSI_LOG_ERROR_RECOVERY(3,
- sdev_printk(KERN_INFO, sdev,
+ shost_printk(KERN_INFO, shost,
"%s: cmds failed: %d, cancel: %d\n",
__func__, cmd_failed,
cmd_cancel));