Changes in uspace/lib/scsi/src/spc.c [582fe388:0feaae4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/scsi/src/spc.c
r582fe388 r0feaae4 44 44 }; 45 45 46 const char *scsi_sense_key_str[SCSI_SK_LIMIT] = {47 [SCSI_SK_NO_SENSE] = "No Sense",48 [SCSI_SK_RECOVERED_ERROR] = "Recovered Error",49 [SCSI_SK_NOT_READY] = "Not Ready",50 [SCSI_SK_MEDIUM_ERROR] = "Medium Error",51 [SCSI_SK_HARDWARE_ERROR] = "Hardware Error",52 [SCSI_SK_ILLEGAL_REQUEST] = "Illegal Request",53 [SCSI_SK_UNIT_ATTENTION] = "Unit Attention",54 [SCSI_SK_DATA_PROTECT] = "Data Protect",55 [SCSI_SK_BLANK_CHECK] = "Blank Check",56 [SCSI_SK_VENDOR_SPECIFIC] = "Vendor-specific",57 [SCSI_SK_COPY_ABORTED] = "Copy Aborted",58 [SCSI_SK_ABORTED_COMMAND] = "Aborted Command",59 [SCSI_SK_VOLUME_OVERFLOW] = "Volume Overflow",60 [SCSI_SK_MISCOMPARE] = "Miscompare"61 };62 63 46 /** Get peripheral device type string. 64 47 * … … 70 53 { 71 54 if (dev_type >= SCSI_DEV_LIMIT || scsi_dev_type_str[dev_type] == NULL) 72 return " Unknown";55 return "<unknown>"; 73 56 74 57 return scsi_dev_type_str[dev_type]; 75 58 } 76 77 /** Get sense key string.78 *79 * Return string description of SCSI sense key.80 * The returned string is valid indefinitely, the caller should81 * not attempt to free it.82 */83 const char *scsi_get_sense_key_str(unsigned sense_key)84 {85 if (sense_key >= SCSI_SK_LIMIT || scsi_sense_key_str[sense_key] == NULL)86 return "Unknown";87 88 return scsi_sense_key_str[sense_key];89 }90
Note:
See TracChangeset
for help on using the changeset viewer.