Page MenuHomeFreeBSD

cam: Fix off by one error in ASC/ASCQ lookup
Needs ReviewPublic

Authored by imp on Sat, Jan 25, 8:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 25, 9:42 PM
Unknown Object (File)
Sat, Jan 25, 9:41 PM
Unknown Object (File)
Sat, Jan 25, 9:36 PM
Subscribers
None

Details

Reviewers
mav
chs
ken
Group Reviewers
cam
Summary

To implement ranges of ASC/ASCQ codes, we set SS_RANGE on an entry with
the entry being the end (highest) of the range (with the prior entry
being the start). When looking up a ASC/ASCQ code, however, we return
the second entry, which just has the range info. Instead, return the
prior entry in these cases so we can print the ASC/ASCQ code string
correctly.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62028
Build 58912: arc lint + arc unit