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:
Kenneth D. Merry 2001-05-27 03:22:51 +00:00
parent 83d94cdf69
commit cb429a255a

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,
path_str, asc_desc);
}
sbuf_printf(sb, " asc:%x,%x\n%s%s", asc, ascq,
path_str, asc_desc);
if (sense->extra_len >= 7 && sense->fru) {
sbuf_printf(sb, " field replaceable unit: %x",