diff options
author | Hannes Reinecke <hare@suse.de> | 2014-10-24 08:26:45 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:15:58 -0500 |
commit | d811b848ebb78a1135658aa20a80e31994df47f7 (patch) | |
tree | 6393a9ce22d3cb9bbca4ac09d9280a4c835cb482 /drivers/scsi/sg.c | |
parent | 22e0d994151c3eac183625f8c1400c0c83ac414f (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/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 55cbc6689d27..2fe2701d86db 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1365,7 +1365,7 @@ sg_rq_end_io(struct request *rq, int uptodate) | |||
1365 | if ((sdp->sgdebug > 0) && | 1365 | if ((sdp->sgdebug > 0) && |
1366 | ((CHECK_CONDITION == srp->header.masked_status) || | 1366 | ((CHECK_CONDITION == srp->header.masked_status) || |
1367 | (COMMAND_TERMINATED == srp->header.masked_status))) | 1367 | (COMMAND_TERMINATED == srp->header.masked_status))) |
1368 | __scsi_print_sense(__func__, sense, | 1368 | __scsi_print_sense(sdp->device, __func__, sense, |
1369 | SCSI_SENSE_BUFFERSIZE); | 1369 | SCSI_SENSE_BUFFERSIZE); |
1370 | 1370 | ||
1371 | /* Following if statement is a patch supplied by Eric Youngdale */ | 1371 | /* Following if statement is a patch supplied by Eric Youngdale */ |