From 84f1508aea1ca262b83a9d6fe30eadfa3ed748c8 Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Sun, 1 Oct 1995 15:19:05 +0000 Subject: [PATCH] Say so if a sense code is vendor specific. --- sys/scsi/scsi_sense.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/scsi/scsi_sense.c b/sys/scsi/scsi_sense.c index a21496afce86..94c5cdf97924 100644 --- a/sys/scsi/scsi_sense.c +++ b/sys/scsi/scsi_sense.c @@ -283,6 +283,13 @@ static struct char *scsi_sense_desc(int asc, int ascq) { int i; + + if (asc >= 0x80 && asc <= 0xff) + return "Vendor Specific ASC"; + + if (ascq >= 0x80 && ascq <= 0xff) + return "Vendor Specific ASCQ"; + for (i = 0; i < sizeof(tab) / sizeof(tab[0]); i++) if (tab[i].asc == asc && tab[i].ascq == ascq) return tab[i].desc;