Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd453c63 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley
Browse files

[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: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 8f23d475
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -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");
}

/*==========================================================