Skip to content

Commit

Permalink
[SCSI] Use spi_print_msg in ncr53c8xx driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Dec 16, 2005
1 parent 8f23d47 commit cd453c6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/scsi/ncr53c8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/*==========================================================
Expand Down

0 comments on commit cd453c6

Please sign in to comment.