diff options
author | Matthew Wilcox <matthew@wil.cx> | 2005-12-16 12:50:53 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-16 13:52:38 -0500 |
commit | cd453c6353ea30171d966fd1dd87c37b05bccee1 (patch) | |
tree | c46cd9da8c0508349efa94faaa5b44eeb5031ccc /drivers/scsi/ncr53c8xx.c | |
parent | 8f23d475581adac949315e3339421e12554932c9 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/ncr53c8xx.c')
-rw-r--r-- | drivers/scsi/ncr53c8xx.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c index 243470936fab..8e1c77c81f6c 100644 --- a/drivers/scsi/ncr53c8xx.c +++ b/drivers/scsi/ncr53c8xx.c | |||
@@ -2971,21 +2971,10 @@ struct host_data { | |||
2971 | 2971 | ||
2972 | static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) | 2972 | static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) |
2973 | { | 2973 | { |
2974 | int i; | ||
2975 | PRINT_ADDR(cp->cmd, "%s: ", label); | 2974 | PRINT_ADDR(cp->cmd, "%s: ", label); |
2976 | 2975 | ||
2977 | printk ("%x",*msg); | 2976 | spi_print_msg(msg); |
2978 | if (*msg == M_EXTENDED) { | 2977 | printk("\n"); |
2979 | for (i = 1; i < 8; i++) { | ||
2980 | if (i - 1 > msg[1]) | ||
2981 | break; | ||
2982 | printk ("-%x",msg[i]); | ||
2983 | } | ||
2984 | } else if ((*msg & 0xf0) == 0x20) { | ||
2985 | printk ("-%x",msg[1]); | ||
2986 | } | ||
2987 | |||
2988 | printk(".\n"); | ||
2989 | } | 2978 | } |
2990 | 2979 | ||
2991 | /*========================================================== | 2980 | /*========================================================== |