aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arm
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 08:26:46 -0400
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:15:58 -0500
commit2e120a5762a0f9c8dad25f04bdfdf374ff890d2e (patch)
tree4f96b1f3159d354aaaea6a6a809878a5e83c6efe /drivers/scsi/arm
parentd811b848ebb78a1135658aa20a80e31994df47f7 (diff)
acornscsi: use scsi_print_command()
Update acornscsi to use scsi_print_command() instead of the underscore version and use scmd_printk() in acornscsi_done(). This will add correct device annotations in the resulting message. And we should be using set_host_byte() for setting the final result. 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/arm')
-rw-r--r--drivers/scsi/arm/acornscsi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c
index d89b9b4deb3c..deaaf84989cd 100644
--- a/drivers/scsi/arm/acornscsi.c
+++ b/drivers/scsi/arm/acornscsi.c
@@ -850,13 +850,13 @@ static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp,
850 break; 850 break;
851 851
852 default: 852 default:
853 printk(KERN_ERR "scsi%d.H: incomplete data transfer detected: result=%08X command=", 853 scmd_printk(KERN_ERR, SCpnt,
854 host->host->host_no, SCpnt->result); 854 "incomplete data transfer detected: "
855 __scsi_print_command(SCpnt->cmnd); 855 "result=%08X", SCpnt->result);
856 scsi_print_command(SCpnt);
856 acornscsi_dumpdma(host, "done"); 857 acornscsi_dumpdma(host, "done");
857 acornscsi_dumplog(host, SCpnt->device->id); 858 acornscsi_dumplog(host, SCpnt->device->id);
858 SCpnt->result &= 0xffff; 859 set_host_byte(SCpnt, DID_ERROR);
859 SCpnt->result |= DID_ERROR << 16;
860 } 860 }
861 } 861 }
862 } 862 }