aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vx/if_vx.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-04-24 22:51:43 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-04-24 22:51:43 +0000
commit9d80a78b16da71eba5e474ad8b1e2b9427cf970a (patch)
tree49a995ed3f6cf0ada8b1294fe6d32c0c30cf4789 /sys/dev/vx/if_vx.c
parent82897554f5e88752948491b038357b453068ba2b (diff)
- vx_stop() requires the driver lock to be held.
- Add some missing newlines to messages printed by vx_getlink(). MFC after: 3 days
Notes
Notes: svn path=/head/; revision=178469
Diffstat (limited to 'sys/dev/vx/if_vx.c')
-rw-r--r--sys/dev/vx/if_vx.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index a5434407995a..c810c711d096 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -200,7 +200,9 @@ vx_attach(device_t dev)
sc->vx_tx_start_thresh = 20; /* probably a good starting point. */
+ VX_LOCK(sc);
vx_stop(sc);
+ VX_UNLOCK(sc);
return 1;
}
@@ -300,7 +302,7 @@ vx_getlink(struct vx_softc *sc)
}
}
if (sc->vx_connectors == 0) {
- printf("no connectors!");
+ printf("no connectors!\n");
return;
}
GO_WINDOW(3);
@@ -310,9 +312,9 @@ vx_getlink(struct vx_softc *sc)
if (sc->vx_connector & 0x10) {
sc->vx_connector &= 0x0f;
printf("[*%s*]", conn_tab[(int)sc->vx_connector].name);
- printf(": disable 'auto select' with DOS util!");
+ printf(": disable 'auto select' with DOS util!\n");
} else {
- printf("[*%s*]", conn_tab[(int)sc->vx_connector].name);
+ printf("[*%s*]\n", conn_tab[(int)sc->vx_connector].name);
}
}