From 04fd7f93832adbfa96ebcb3c0224da1231c34bed Mon Sep 17 00:00:00 2001 From: soren Date: Sat, 3 Jan 2004 14:11:36 +0000 Subject: [PATCH] Only report codec readiness if DEBUG to avoid printing it on every resume. --- sys/dev/pci/auich.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c index d7c97ffa6c94..3556f8c6a5db 100644 --- a/sys/dev/pci/auich.c +++ b/sys/dev/pci/auich.c @@ -1,4 +1,4 @@ -/* $NetBSD: auich.c,v 1.56 2003/12/28 12:31:30 kent Exp $ */ +/* $NetBSD: auich.c,v 1.57 2004/01/03 14:11:36 soren Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -118,7 +118,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.56 2003/12/28 12:31:30 kent Exp $"); +__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.57 2004/01/03 14:11:36 soren Exp $"); #include #include @@ -628,12 +628,14 @@ auich_reset_codec(void *v) printf("%s: auich_reset_codec: time out\n", sc->sc_dev.dv_xname); /* XXX: should not attach the audio device */ } else { +#ifdef DEBUG if (status & ICH_SCR) printf("%s: The 2nd codec is ready.\n", sc->sc_dev.dv_xname); if (status & ICH_S2CR) printf("%s: The 3rd codec is ready.\n", sc->sc_dev.dv_xname); +#endif } }