[SCSI] Use spi_print_msg in ncr53c8xx driver
authorMatthew Wilcox <matthew@wil.cx>
Fri, 16 Dec 2005 17:50:53 +0000 (12:50 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 16 Dec 2005 18:52:38 +0000 (10:52 -0800)
The ncr53c8xx driver had its own loop to print scsi messages.  Use the
SPI one instead.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ncr53c8xx.c

index 243470936fab4e18b1aeab916b023a3040bedb07..8e1c77c81f6c031dbf4ed8fba48092c8c46ea75d 100644 (file)
@@ -2971,21 +2971,10 @@ struct host_data {
 
 static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg)
 {
-       int i;
        PRINT_ADDR(cp->cmd, "%s: ", label);
 
-       printk ("%x",*msg);
-       if (*msg == M_EXTENDED) {
-               for (i = 1; i < 8; i++) {
-                       if (i - 1 > msg[1])
-                               break;
-                       printk ("-%x",msg[i]);
-               }
-       } else if ((*msg & 0xf0) == 0x20) {
-               printk ("-%x",msg[1]);
-       }
-
-       printk(".\n");
+       spi_print_msg(msg);
+       printk("\n");
 }
 
 /*==========================================================