summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflipk <flipk@cvs.openbsd.org>1997-09-15 19:28:32 +0000
committerflipk <flipk@cvs.openbsd.org>1997-09-15 19:28:32 +0000
commit8e80e8a87937bc50349124f7a3d4a5670aa10766 (patch)
tree8150ccf16e520e73b8d0d106c16c1b2296f16f5b
parentcdeb802b29b273f1748097766e5ab7ebbc3681ea (diff)
AHADEBUG cleanliness
-rw-r--r--sys/dev/isa/aha.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c
index c2fd199006c..703460df206 100644
--- a/sys/dev/isa/aha.c
+++ b/sys/dev/isa/aha.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha.c,v 1.29 1997/07/30 22:12:11 niklas Exp $ */
+/* $OpenBSD: aha.c,v 1.30 1997/09/15 19:28:31 flipk Exp $ */
/* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */
#undef AHADIAG
@@ -435,7 +435,7 @@ AGAIN:
#ifdef AHADEBUG
if (aha_debug) {
- u_char *cp = &ccb->scsi_cmd;
+ u_char *cp = (u_char*)&ccb->scsi_cmd;
printf("op=%x %x %x %x %x %x\n",
cp[0], cp[1], cp[2], cp[3], cp[4], cp[5]);
printf("stat %x for mbi addr = 0x%08x, ",
@@ -499,7 +499,8 @@ ahaintr(arg)
u_char sts;
#ifdef AHADEBUG
- printf("%s: ahaintr ", sc->sc_dev.dv_xname);
+ if (aha_debug)
+ printf("%s: ahaintr ", sc->sc_dev.dv_xname);
#endif /*AHADEBUG */
/*