summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-06-22 06:42:03 +0000
committerharti <harti@FreeBSD.org>2005-06-22 06:42:03 +0000
commit0fca1a44023afcc9e6793cd9476dde654321d25d (patch)
treecfc8b663ee9df600dfbb36a752cca44054514447 /sys/dev/hatm
parent2628b26a5edabadc373f8e3e63d70dbf449fc99c (diff)
downloadFreeBSD-src-0fca1a44023afcc9e6793cd9476dde654321d25d.zip
FreeBSD-src-0fca1a44023afcc9e6793cd9476dde654321d25d.tar.gz
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
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r--sys/dev/hatm/if_hatmvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatmvar.h b/sys/dev/hatm/if_hatmvar.h
index 9edadc3..d19fd0e 100644
--- a/sys/dev/hatm/if_hatmvar.h
+++ b/sys/dev/hatm/if_hatmvar.h
@@ -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"); \
} \
OpenPOWER on IntegriCloud