acornscsi: use scsi_print_command()
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:46 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:15:58 +0000 (11:15 +0100)
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>
drivers/scsi/arm/acornscsi.c

index d89b9b4deb3cdd659b615cd870541d726bb61a42..deaaf84989cd15d9ea4a306828e03623b364ccec 100644 (file)
@@ -850,13 +850,13 @@ static void acornscsi_done(AS_Host *host, struct scsi_cmnd **SCpntp,
                        break;
 
                    default:
-                       printk(KERN_ERR "scsi%d.H: incomplete data transfer detected: result=%08X command=",
-                               host->host->host_no, SCpnt->result);
-                       __scsi_print_command(SCpnt->cmnd);
+                       scmd_printk(KERN_ERR, SCpnt,
+                                   "incomplete data transfer detected: "
+                                   "result=%08X", SCpnt->result);
+                       scsi_print_command(SCpnt);
                        acornscsi_dumpdma(host, "done");
-                       acornscsi_dumplog(host, SCpnt->device->id);
-                       SCpnt->result &= 0xffff;
-                       SCpnt->result |= DID_ERROR << 16;
+                       acornscsi_dumplog(host, SCpnt->device->id);
+                       set_host_byte(SCpnt, DID_ERROR);
                    }
                }
        }
This page took 0.031087 seconds and 5 git commands to generate.