Say so if a sense code is vendor specific.

This commit is contained in:
Peter Dufault 1995-10-01 15:19:05 +00:00
parent 26e19bc736
commit 84f1508aea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11115

View File

@ -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;