diff options
author | ken <ken@FreeBSD.org> | 2001-05-27 03:22:51 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2001-05-27 03:22:51 +0000 |
commit | d804909e7114430133b3f70be1266cae28b42cfe (patch) | |
tree | e7d9f0e2cb647870aef8cad13be21f9a3d3aa1d0 /sys/cam | |
parent | 7efd4f631e966bb4264560adae393ea771412f96 (diff) | |
download | FreeBSD-src-d804909e7114430133b3f70be1266cae28b42cfe.zip FreeBSD-src-d804909e7114430133b3f70be1266cae28b42cfe.tar.gz |
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.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_all.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 53e3868..b00658a 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -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", |