aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2004-08-13 18:45:04 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2004-08-13 18:45:04 +0000
commit6e6a585e3fcfb34f11d06e7e99af6f6569d148b6 (patch)
treef376746afab4f0e0bcb746dcf7739e6b3e54f28e /sys/cam
parente1ebe175799961e589139ce81d1a3485e44cf64b (diff)
downloadsrc-6e6a585e3fcfb34f11d06e7e99af6f6569d148b6.tar.gz
src-6e6a585e3fcfb34f11d06e7e99af6f6569d148b6.zip
When printing out an unknown sense code we should print it in hex, not
decimal. Reviewed by: gibbs, nate, kdm
Notes
Notes: svn path=/head/; revision=133662
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_all.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 67f6654138ce..8f3a3de9aa41 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -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));