Fix the debugging macro. The struct ifnet isn't embedded in softc

anymore - instead we have a pointer in the softc to it. Use that
instead to call if_printf().

Approved by:	re
This commit is contained in:
Hartmut Brandt 2005-06-22 06:42:03 +00:00
parent 2c87a19e7a
commit 2e7d71c520

View File

@ -590,7 +590,7 @@ struct hatm_softc {
#ifdef HATM_DEBUG
#define DBG(SC, FL, PRINT) do { \
if((SC)->debug & DBG_##FL) { \
if_printf(&(SC)->ifatm.ifnet, "%s: ", __func__); \
if_printf((SC)->ifp, "%s: ", __func__); \
printf PRINT; \
printf("\n"); \
} \