On Thu 24/04, Stefan Sperling wrote: > On Thu, Apr 24, 2014 at 10:31:47AM +0200, Alessandro DE LAURENZIS wrote: > > Can you please check for me if bge_activate() is called when you > shut down the machine, and with what value? Just add a printf like this: > > int > bge_activate(struct device *self, int act) > { > struct bge_softc *sc = (struct bge_softc *)self; > struct ifnet *ifp = &sc->arpcom.ac_if; > int rv = 0; > > > printf("%s: %d\n", __func__, act); >
Ok, I know: noob question here, please bear with me... I did: # egrep -A2 -B2 DEBUG /usr/src/sys/dev/pci/if_bge.c void bge_ape_driver_state_change(struct bge_softc *, int); #ifdef BGE_DEBUG #define DPRINTF(x) do { if (bgedebug) printf x; } while (0) #define DPRINTFN(n,x) do { if (bgedebug >= (n)) printf x; } while (0) -- int rv = 0; printf("%s","BGE WOL DEBUG"); printf("%s: %d\n", __func__, act); -- /* if we'd make prev a runt, just move all of its data. */ #ifdef DEBUG KASSERT(prev != NULL /*, ("runt but null PREV")*/); KASSERT(prev->m_len >= 8 /*, ("runt prev")*/); # but: # dmesg | egrep DEBUG # (no response) # egrep DEBUG /var/log/* # (no response) Where should I find the placeholder (and the output of the relevant printf)? I'm a bit confused... Cheers -- Alessandro DE LAURENZIS [mailto:just22....@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis