summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-03-07 16:48:32 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-03-07 16:48:32 +0000
commit797f2dbac12ca3faa807f2d0e06d78d59afa24c0 (patch)
treed75f0f86df7f0a755d548c1b24a8789899b76bf0 /sys/dev
parent86458c6417bd69b9a3eba372332f057830e88cac (diff)
No need to spam log with 'unable to alloc CCB' messages now that
NO_CCB is in place and the I/O is retried rather than discarded. So move the message inside a #ifdef CAC_DEBUG. Noticed by jbg@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/cac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/cac.c b/sys/dev/ic/cac.c
index 7cbf5507960..66125c84207 100644
--- a/sys/dev/ic/cac.c
+++ b/sys/dev/ic/cac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cac.c,v 1.29 2009/02/20 00:36:12 krw Exp $ */
+/* $OpenBSD: cac.c,v 1.30 2009/03/07 16:48:31 krw Exp $ */
/* $NetBSD: cac.c,v 1.15 2000/11/08 19:20:35 ad Exp $ */
/*
@@ -351,7 +351,9 @@ cac_cmd(struct cac_softc *sc, int command, void *data, int datasize,
#endif
if ((ccb = cac_ccb_alloc(sc, 0)) == NULL) {
+#ifdef CAC_DEBUG
printf("%s: unable to alloc CCB\n", sc->sc_dv.dv_xname);
+#endif
return (ENOMEM);
}