Commit 2e120a57 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Christoph Hellwig

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: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarRobert Elliott <elliott@hp.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent d811b848
...@@ -850,13 +850,13 @@ static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp, ...@@ -850,13 +850,13 @@ static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp,
break; break;
default: default:
printk(KERN_ERR "scsi%d.H: incomplete data transfer detected: result=%08X command=", scmd_printk(KERN_ERR, SCpnt,
host->host->host_no, SCpnt->result); "incomplete data transfer detected: "
__scsi_print_command(SCpnt->cmnd); "result=%08X", SCpnt->result);
scsi_print_command(SCpnt);
acornscsi_dumpdma(host, "done"); acornscsi_dumpdma(host, "done");
acornscsi_dumplog(host, SCpnt->device->id); acornscsi_dumplog(host, SCpnt->device->id);
SCpnt->result &= 0xffff; set_host_byte(SCpnt, DID_ERROR);
SCpnt->result |= DID_ERROR << 16;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment