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>
此提交包含在:
@@ -274,10 +274,6 @@ static void scsiback_print_status(char *sense_buffer, int errors,
|
||||
tpg->tport->tport_name, pending_req->v2p->lun,
|
||||
pending_req->cmnd[0], status_byte(errors), msg_byte(errors),
|
||||
host_byte(errors), driver_byte(errors));
|
||||
|
||||
if (CHECK_CONDITION & status_byte(errors))
|
||||
__scsi_print_sense("xen-pvscsi", sense_buffer,
|
||||
SCSI_SENSE_BUFFERSIZE);
|
||||
}
|
||||
|
||||
static void scsiback_fast_flush_area(struct vscsibk_pend *req)
|
||||
|
新增問題並參考
封鎖使用者