1
0
Fork 0

[SCSI] Use spi_print_msg in ncr53c8xx driver

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>
hifive-unleashed-5.1
Matthew Wilcox 2005-12-16 12:50:53 -05:00 committed by James Bottomley
parent 8f23d47558
commit cd453c6353
1 changed files with 2 additions and 13 deletions

View 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");
}
/*==========================================================