From a1c83407c9863e0cbc243064f5c127527d9024bd Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Tue, 8 Aug 2006 09:02:49 +0000 Subject: Don't yell about failed channel enabling in none-debug mode, because we use a static number of channels. ok jsg@ --- sys/dev/ic/acx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index 1038163f890..4db781b3a8d 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.34 2006/08/08 05:18:53 jsg Exp $ */ +/* $OpenBSD: acx.c,v 1.35 2006/08/08 09:02:48 mglocker Exp $ */ /* * Copyright (c) 2006 Jonathan Gray @@ -141,16 +141,16 @@ int acxdebug = 1; #define ACX_ENABLE_TXCHAN(sc, chan, ifname) \ do { \ if (acx_enable_txchan((sc), (chan)) != 0) { \ - printf("%s: enable TX on channel %d failed\n", \ - (ifname), (chan)); \ + DPRINTF(("%s: enable TX on channel %d failed\n", \ + (ifname), (chan))); \ } \ } while (0) #define ACX_ENABLE_RXCHAN(sc, chan, ifname) \ do { \ if (acx_enable_rxchan((sc), (chan)) != 0) { \ - printf("%s: enable RX on channel %d failed\n", \ - (ifname), (chan)); \ + DPRINTF(("%s: enable RX on channel %d failed\n", \ + (ifname), (chan))); \ } \ } while (0) @@ -2693,7 +2693,7 @@ acx_exec_command(struct acx_softc *sc, uint16_t cmd, void *param, /* Get command exec status */ status = (CMD_READ_4(sc) >> ACX_CMD_STATUS_SHIFT); if (status != ACX_CMD_STATUS_OK) { - printf("%s: cmd %04x failed\n", sc->sc_dev.dv_xname, cmd); + DPRINTF(("%s: cmd %04x failed\n", sc->sc_dev.dv_xname, cmd)); ret = 1; goto back; } -- cgit v1.2.3