diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-03-28 11:03:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-04-13 11:13:24 -0400 |
commit | 92d578b94c3c6263777687d8f2653c2a63d922bf (patch) | |
tree | 956f11e8ed3eeb5c654a8271767fc11b603fca7a /drivers/scsi | |
parent | 3bea15a76eecc03729bf74d6ab2a1f849c08423e (diff) |
[SCSI] Use SPI messages where possible
Now sym2 is using spi_print_msg, we don't need to have our own messages
for IGNORE WIDE RESIDUE and MODIFY DATA POINTER, so provide the option
of passing NULL for the label.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index a6cbb90e2bb9..1d01c24f5ae9 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -72,7 +72,10 @@ static void sym_printl_hex(u_char *p, int n) | |||
72 | 72 | ||
73 | static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) | 73 | static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) |
74 | { | 74 | { |
75 | sym_print_addr(cp->cmd, "%s: ", label); | 75 | if (label) |
76 | sym_print_addr(cp->cmd, "%s: ", label); | ||
77 | else | ||
78 | sym_print_addr(cp->cmd, ""); | ||
76 | 79 | ||
77 | spi_print_msg(msg); | 80 | spi_print_msg(msg); |
78 | printf("\n"); | 81 | printf("\n"); |
@@ -4486,7 +4489,7 @@ static void sym_int_sir (struct sym_hcb *np) | |||
4486 | switch (np->msgin [2]) { | 4489 | switch (np->msgin [2]) { |
4487 | case M_X_MODIFY_DP: | 4490 | case M_X_MODIFY_DP: |
4488 | if (DEBUG_FLAGS & DEBUG_POINTER) | 4491 | if (DEBUG_FLAGS & DEBUG_POINTER) |
4489 | sym_print_msg(cp,"modify DP",np->msgin); | 4492 | sym_print_msg(cp, NULL, np->msgin); |
4490 | tmp = (np->msgin[3]<<24) + (np->msgin[4]<<16) + | 4493 | tmp = (np->msgin[3]<<24) + (np->msgin[4]<<16) + |
4491 | (np->msgin[5]<<8) + (np->msgin[6]); | 4494 | (np->msgin[5]<<8) + (np->msgin[6]); |
4492 | sym_modify_dp(np, tp, cp, tmp); | 4495 | sym_modify_dp(np, tp, cp, tmp); |
@@ -4513,7 +4516,7 @@ static void sym_int_sir (struct sym_hcb *np) | |||
4513 | */ | 4516 | */ |
4514 | case M_IGN_RESIDUE: | 4517 | case M_IGN_RESIDUE: |
4515 | if (DEBUG_FLAGS & DEBUG_POINTER) | 4518 | if (DEBUG_FLAGS & DEBUG_POINTER) |
4516 | sym_print_msg(cp,"ign wide residue", np->msgin); | 4519 | sym_print_msg(cp, NULL, np->msgin); |
4517 | if (cp->host_flags & HF_SENSE) | 4520 | if (cp->host_flags & HF_SENSE) |
4518 | OUTL_DSP(np, SCRIPTA_BA(np, clrack)); | 4521 | OUTL_DSP(np, SCRIPTA_BA(np, clrack)); |
4519 | else | 4522 | else |