mirror of
https://github.com/opnsense/src.git
synced 2026-07-14 19:51:17 -04:00
cam (scsi): silence "Medium not present" SCSI sense logging for removable media
Change SS_FATAL to SS_FAIL for SCSI sense code 0x3A (Medium not present) to suppress console spam when card readers or other removable media devices have no media inserted. The error is still returned to callers (ENXIO), but no longer prints to dmesg during boot/probe. Verified with Apple SD Card Reader - reduced boot messages from 4 to 2. Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D55287 (cherry picked from commit 3d218b6289cf4675abdeef17a4489e71f8e1935e)
This commit is contained in:
parent
588bb16e7b
commit
7faa082b0c
1 changed files with 3 additions and 3 deletions
|
|
@ -2194,13 +2194,13 @@ static struct asc_table_entry asc_table[] = {
|
|||
{ SST(0x39, 0x00, SS_RDEF,
|
||||
"Saving parameters not supported") },
|
||||
/* DTL WROM BK */
|
||||
{ SST(0x3A, 0x00, SS_FATAL | ENXIO,
|
||||
{ SST(0x3A, 0x00, SS_FAIL | ENXIO,
|
||||
"Medium not present") },
|
||||
/* DT WROM BK */
|
||||
{ SST(0x3A, 0x01, SS_FATAL | ENXIO,
|
||||
{ SST(0x3A, 0x01, SS_FAIL | ENXIO,
|
||||
"Medium not present - tray closed") },
|
||||
/* DT WROM BK */
|
||||
{ SST(0x3A, 0x02, SS_FATAL | ENXIO,
|
||||
{ SST(0x3A, 0x02, SS_FAIL | ENXIO,
|
||||
"Medium not present - tray open") },
|
||||
/* DT WROM B */
|
||||
{ SST(0x3A, 0x03, SS_RDEF, /* XXX TBD */
|
||||
|
|
|
|||
Loading…
Reference in a new issue