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:
parent
7d472ce18d
commit
5f72b8eba7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user