Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hannes Reinecke and committed by
Christoph Hellwig
2e120a57 d811b848

+6 -6
+6 -6
drivers/scsi/arm/acornscsi.c
··· 850 850 break; 851 851 852 852 default: 853 - printk(KERN_ERR "scsi%d.H: incomplete data transfer detected: result=%08X command=", 854 - host->host->host_no, SCpnt->result); 855 - __scsi_print_command(SCpnt->cmnd); 853 + scmd_printk(KERN_ERR, SCpnt, 854 + "incomplete data transfer detected: " 855 + "result=%08X", SCpnt->result); 856 + scsi_print_command(SCpnt); 856 857 acornscsi_dumpdma(host, "done"); 857 - acornscsi_dumplog(host, SCpnt->device->id); 858 - SCpnt->result &= 0xffff; 859 - SCpnt->result |= DID_ERROR << 16; 858 + acornscsi_dumplog(host, SCpnt->device->id); 859 + set_host_byte(SCpnt, DID_ERROR); 860 860 } 861 861 } 862 862 }