Date: Sun, 10 Dec 2006 23:54:47 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111418 for review Message-ID: <200612102354.kBANsljn072912@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111418 Change 111418 by sam@sam_ebb on 2006/12/10 23:54:23 nuke debug printf on every reg write; if this is needed it belongs under a separate option or controlled by a higher level of verbosity on the debug sysctl knob Affected files ... .. //depot/projects/crypto/sys/dev/hifn/hifn7751.c#5 edit Differences ... ==== //depot/projects/crypto/sys/dev/hifn/hifn7751.c#5 (text+ko) ==== @@ -173,11 +173,7 @@ sc->sc_bar0_lastreg = (bus_size_t) -1; return (v); } -#ifdef HIFN_DEBUG -#define WRITE_REG_0(sc, reg, val) ( device_printf(sc->sc_dev, "write-0 %04x %08x\n", reg, val), hifn_write_reg_0(sc, reg, val)) -#else #define WRITE_REG_0(sc, reg, val) hifn_write_reg_0(sc, reg, val) -#endif static __inline u_int32_t READ_REG_1(struct hifn_softc *sc, bus_size_t reg) @@ -186,11 +182,7 @@ sc->sc_bar1_lastreg = (bus_size_t) -1; return (v); } -#ifdef HIFN_DEBUG -#define WRITE_REG_1(sc, reg, val) ( device_printf(sc->sc_dev, "write-1 %04x %08x\n", reg, val), hifn_write_reg_1(sc, reg, val)) -#else #define WRITE_REG_1(sc, reg, val) hifn_write_reg_1(sc, reg, val) -#endif SYSCTL_NODE(_hw, OID_AUTO, hifn, CTLFLAG_RD, 0, "Hifn driver parameters");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612102354.kBANsljn072912>