From a3abd895bef629e12ff2e02649838a12af7df9dd Mon Sep 17 00:00:00 2001 From: visa Date: Sun, 14 Aug 2016 08:49:37 +0000 Subject: [PATCH] Remove some annoying debug printfs to get rid of u_quad_t in cnmac. --- sys/arch/octeon/dev/if_cnmac.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c index cb5985cc0ad..769f94ecf2c 100644 --- a/sys/arch/octeon/dev/if_cnmac.c +++ b/sys/arch/octeon/dev/if_cnmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cnmac.c,v 1.57 2016/08/06 04:32:24 visa Exp $ */ +/* $OpenBSD: if_cnmac.c,v 1.58 2016/08/14 08:49:37 visa Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -1380,28 +1380,13 @@ void octeon_eth_tick_misc(void *arg) { struct octeon_eth_softc *sc = arg; - struct ifnet *ifp; - u_quad_t iqdrops, delta; + struct ifnet *ifp = &sc->sc_arpcom.ac_if; int s; s = splnet(); - ifp = &sc->sc_arpcom.ac_if; - - iqdrops = ifp->if_iqdrops; cn30xxgmx_stats(sc->sc_gmx_port); -#ifdef OCTEON_ETH_DEBUG - delta = ifp->if_iqdrops - iqdrops; - printf("%s: %qu packets dropped at GMX FIFO\n", - ifp->if_xname, delta); -#endif cn30xxpip_stats(sc->sc_pip, ifp, sc->sc_port); - delta = ifp->if_iqdrops - iqdrops; -#ifdef OCTEON_ETH_DEBUG - printf("%s: %qu packets dropped at PIP + GMX FIFO\n", - ifp->if_xname, delta); -#endif - mii_tick(&sc->sc_mii); splx(s); -- 2.20.1