Print out the asc/ascq and description even when both the asc and ascq

are zero.  This is so that users will see the "no addtional sense" printout
and know that they have the full sense information.
This commit is contained in:
ken 2001-05-27 03:22:51 +00:00
parent 415285a250
commit de66871c15

View File

@ -2009,10 +2009,8 @@ scsi_sense_sbuf(struct cam_device *device, struct ccb_scsiio *csio,
} }
} }
if (asc || ascq) {
sbuf_printf(sb, " asc:%x,%x\n%s%s", asc, ascq, sbuf_printf(sb, " asc:%x,%x\n%s%s", asc, ascq,
path_str, asc_desc); path_str, asc_desc);
}
if (sense->extra_len >= 7 && sense->fru) { if (sense->extra_len >= 7 && sense->fru) {
sbuf_printf(sb, " field replaceable unit: %x", sbuf_printf(sb, " field replaceable unit: %x",