aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Zhilin <mizhka@FreeBSD.org>2018-01-25 05:48:42 +0000
committerMichael Zhilin <mizhka@FreeBSD.org>2018-01-25 05:48:42 +0000
commit1b8be09a20de61efd99b8a31b810ca40e52fe9c6 (patch)
tree5601b29679dbc05ab83aa3b576c6ebed7594d6ac /sys
parentc676c939e2e1e376d2933941f2a4aa6094f29d7d (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/etherswitch/rtl8366/rtl8366rb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c
index 1fff39bfbac98..279c33bcaf4af 100644
--- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c
+++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c
@@ -240,7 +240,7 @@ rtl8366rb_attach(device_t dev)
for (i = 0; i < sc->numphys; i++) {
sc->ifp[i] = if_alloc(IFT_ETHER);
if (sc->ifp[i] == NULL) {
- device_printf(sc->sc_dev, "couldn't allocate ifnet structure\n");
+ device_printf(dev, "couldn't allocate ifnet structure\n");
err = ENOMEM;
break;
}