From be9910c3e9a82762cd55fb1cdec9130ab335c1a4 Mon Sep 17 00:00:00 2001 From: briggs Date: Wed, 31 Jan 1996 15:04:03 +0000 Subject: [PATCH] COMMAND ABORTED sense key is 0xb, not 0xa. Also clean up diagnostic message. --- sys/scsi/scsi_base.c | 11 +++++++---- 1 file 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); } -- 2.20.1