Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53685
b: refs/heads/master
c: b0692dd
h: refs/heads/master
i:
  53683: ed00cdd
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Apr 1, 2007
1 parent ef330ef commit 86e8004
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc9bd5d4256ecc1b6e0448febb4be29db1a91256
refs/heads/master: b0692dd4d7e90ce5cf1241731c6e80118402e3b4
8 changes: 6 additions & 2 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4453,20 +4453,24 @@ static void ipr_dump_ioasa(struct ipr_ioa_cfg *ioa_cfg,
{
int i;
u16 data_len;
u32 ioasc;
u32 ioasc, fd_ioasc;
struct ipr_ioasa *ioasa = &ipr_cmd->ioasa;
__be32 *ioasa_data = (__be32 *)ioasa;
int error_index;

ioasc = be32_to_cpu(ioasa->ioasc) & IPR_IOASC_IOASC_MASK;
fd_ioasc = be32_to_cpu(ioasa->fd_ioasc) & IPR_IOASC_IOASC_MASK;

if (0 == ioasc)
return;

if (ioa_cfg->log_level < IPR_DEFAULT_LOG_LEVEL)
return;

error_index = ipr_get_error(ioasc);
if (ioasc == IPR_IOASC_BUS_WAS_RESET && fd_ioasc)
error_index = ipr_get_error(fd_ioasc);
else
error_index = ipr_get_error(ioasc);

if (ioa_cfg->log_level < IPR_MAX_LOG_LEVEL) {
/* Don't log an error if the IOA already logged one */
Expand Down

0 comments on commit 86e8004

Please sign in to comment.