From de66871c151ea1feae96e22fd312edbbe89aae3b Mon Sep 17 00:00:00 2001 From: ken Date: Sun, 27 May 2001 03:22:51 +0000 Subject: [PATCH] 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. --- sys/cam/scsi/scsi_all.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 53e3868e383b..b00658aaf72a 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",