When printing out an unknown sense code we should print it in hex, not

decimal.

Reviewed by: gibbs, nate, kdm
This commit is contained in:
mjacob 2004-08-13 18:45:04 +00:00
parent 7d472ce18d
commit 5f72b8eba7

View File

@ -2103,9 +2103,7 @@ scsi_sense_sbuf(struct cam_device *device, struct ccb_scsiio *csio,
}
default:
sbuf_printf(sb, "error code %d",
sense->error_code & SSD_ERRCODE);
sbuf_printf(sb, "Sense Error Code 0x%x", sense->error_code);
if (sense->error_code & SSD_ERRCODE_VALID) {
sbuf_printf(sb, " at block no. %d (decimal)",
info = scsi_4btoul(sense->info));