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
e1ebe17579
commit
6e6a585e3f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133662
@ -2103,9 +2103,7 @@ scsi_sense_sbuf(struct cam_device *device, struct ccb_scsiio *csio,
|
|||||||
|
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
sbuf_printf(sb, "error code %d",
|
sbuf_printf(sb, "Sense Error Code 0x%x", sense->error_code);
|
||||||
sense->error_code & SSD_ERRCODE);
|
|
||||||
|
|
||||||
if (sense->error_code & SSD_ERRCODE_VALID) {
|
if (sense->error_code & SSD_ERRCODE_VALID) {
|
||||||
sbuf_printf(sb, " at block no. %d (decimal)",
|
sbuf_printf(sb, " at block no. %d (decimal)",
|
||||||
info = scsi_4btoul(sense->info));
|
info = scsi_4btoul(sense->info));
|
||||||
|
Loading…
Reference in New Issue
Block a user