mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Say so if a sense code is vendor specific.
This commit is contained in:
parent
26e19bc736
commit
84f1508aea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11115
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user