summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-12-24 13:20:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-12-24 13:20:06 +0000
commitf924fc5687fcce16de3cbe026d2266242ff50a73 (patch)
tree53b5c0b870d6258e89d4c187b1f6aaf07321818e /sys/scsi/scsi_base.c
parent1950f97f379542b90f8f1f166d6329a7b40740ba (diff)
Make error message more informative by showing bad value that caused
the error to be emitted. ok miod@.
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index b16250d845e..b006bbfe6e1 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.44 2003/09/26 21:43:32 miod Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.45 2003/12/24 13:20:05 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -615,7 +615,8 @@ sc_err1(xs, async)
default:
sc_print_addr(xs->sc_link);
- printf("unknown error category from scsi driver\n");
+ printf("unknown error category (0x%x) from scsi driver\n",
+ xs->error);
error = EIO;
break;
}