diff options
author | briggs <briggs@cvs.openbsd.org> | 1996-01-31 15:04:04 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1996-01-31 15:04:04 +0000 |
commit | 531e3d6116a1ae57f6a7f0300084dc4cb7f621f6 (patch) | |
tree | 96ad1df0832ff56a096f505139d1470228e42b1f /sys/scsi/scsi_base.c | |
parent | 43a5d2a39fd9837c2379f0ae9ddc6b32be6297ef (diff) |
COMMAND ABORTED sense key is 0xb, not 0xa. Also clean up diagnostic message.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r-- | sys/scsi/scsi_base.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 3539a0d1511..192bfa22f34 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -693,7 +693,7 @@ scsi_interpret_sense(xs) case 0x8: /* BLANK CHECK */ error = 0; break; - case 0xa: /* COMMAND ABORTED */ + case 0xb: /* COMMAND ABORTED */ error = ERESTART; break; case 0xd: /* VOLUME OVERFLOW */ @@ -718,9 +718,12 @@ scsi_interpret_sense(xs) printf(", requested size: %d (decimal)", info); break; - case 0xa: /* COMMAND ABORTED */ - printf(", cmd %x, attempting retry", - xs->cmd->opcode); + case 0xb: /* COMMAND ABORTED */ + if (xs->retries) + printf(", retrying"); + printf(", cmd 0x%x, info 0x%x", + xs->cmd->opcode, info); + break; default: printf(", info = %d (decimal)", info); } |