diff options
| author | Simon J. Gerraty <sjg@FreeBSD.org> | 2014-08-19 06:50:54 +0000 |
|---|---|---|
| committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2014-08-19 06:50:54 +0000 |
| commit | ee7b0571c2c18bdec848ed2044223cc88db29bd8 (patch) | |
| tree | b04f4bd7cd887f50e7d98af35f46b9834ff86c80 /sys/dev/bxe/bxe_debug.c | |
| parent | ffda191e301f128a62c152fde92b692548367fca (diff) | |
| parent | 15fc2873832ea5b9b639e701bbbf2e73af8b6a88 (diff) | |
Notes
Diffstat (limited to 'sys/dev/bxe/bxe_debug.c')
| -rw-r--r-- | sys/dev/bxe/bxe_debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bxe/bxe_debug.c b/sys/dev/bxe/bxe_debug.c index 32db18aa3af2..671d29fb0de5 100644 --- a/sys/dev/bxe/bxe_debug.c +++ b/sys/dev/bxe/bxe_debug.c @@ -299,7 +299,7 @@ static void bxe_ddb(db_expr_t blah1, char *blah4) { char if_xname[IFNAMSIZ]; - struct ifnet *ifp = NULL; + if_t ifp = NULL; struct bxe_softc *sc; db_expr_t next_arg; int index; @@ -335,13 +335,13 @@ static void bxe_ddb(db_expr_t blah1, } snprintf(if_xname, sizeof(if_xname), "bxe%d", index); - if ((ifp = ifunit_ref(if_xname)) == NULL) + if ((ifp = ifunit_ref(if_xname)) == NULL) /* XXX */ { db_printf("ERROR: Invalid interface %s\n", if_xname); goto bxe_ddb_done; } - sc = (struct bxe_softc *)ifp->if_softc; + sc = (struct bxe_softc *)if_getsoftc(ifp); db_printf("ifnet=%p (%s)\n", ifp, if_xname); db_printf("softc=%p\n", sc); db_printf(" dev=%p\n", sc->dev); |
