Module Name: src Committed By: andvar Date: Fri Sep 15 20:59:56 UTC 2023
Modified Files: src/sys/arch/sh3/dev: scif.c Log Message: sh3/scif(4): replace undefined scifstatus with DPRINTF. fixes the build with SCIF_DEBUG enabled. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/sys/arch/sh3/dev/scif.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sh3/dev/scif.c diff -u src/sys/arch/sh3/dev/scif.c:1.68 src/sys/arch/sh3/dev/scif.c:1.69 --- src/sys/arch/sh3/dev/scif.c:1.68 Sat Nov 21 17:25:52 2020 +++ src/sys/arch/sh3/dev/scif.c Fri Sep 15 20:59:56 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: scif.c,v 1.68 2020/11/21 17:25:52 thorpej Exp $ */ +/* $NetBSD: scif.c,v 1.69 2023/09/15 20:59:56 andvar Exp $ */ /*- * Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu. All rights reserved. @@ -93,7 +93,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.68 2020/11/21 17:25:52 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.69 2023/09/15 20:59:56 andvar Exp $"); #include "opt_kgdb.h" #include "opt_scif.h" @@ -176,6 +176,11 @@ struct scif_softc { volatile u_char sc_heldchange; }; +#ifdef SCIF_DEBUG +#define DPRINTF_ENABLE +#define DPRINTF_DEBUG scif_debug +#endif +#include <machine/debug.h> static int scif_match(device_t, cfdata_t, void *); static void scif_attach(device_t, device_t, void *); @@ -683,10 +688,7 @@ scifparam(struct tty *tp, struct termios splx(s); -#ifdef SCIF_DEBUG - if (scif_debug) - scifstatus(sc, "scifparam "); -#endif + DPRINTF("%s: scifparam\n", device_xname(sc->sc_dev)); if (!ISSET(t->c_cflag, CHWFLOW)) { if (sc->sc_tx_stopped) { @@ -797,10 +799,7 @@ scifopen(dev_t dev, int flag, int mode, scif_hwiflow(sc); #endif -#ifdef SCIF_DEBUG - if (scif_debug) - scifstatus(sc, "scifopen "); -#endif + DPRINTF("%s: scifopen\n", device_xname(sc->sc_dev)); splx(s2); } @@ -1148,10 +1147,7 @@ scif_stsoft(struct scif_softc *sc, struc } } -#ifdef SCIF_DEBUG - if (scif_debug) - scifstatus(sc, "scif_stsoft"); -#endif + DPRINTF("%s: scif_stsoft\n", device_xname(sc->sc_dev)); } #endif /* 0 */ @@ -1347,10 +1343,7 @@ scifintr(void *arg) if (ISSET(~msr, sc->sc_msr_mask)) { sc->sc_tbc = 0; sc->sc_heldtbc = 0; -#ifdef SCIF_DEBUG - if (scif_debug) - scifstatus(sc, "scifintr "); -#endif + DPRINTF("%s: scifintr\n", device_xname(sc->sc_dev)); } sc->sc_st_check = 1;