From 986c42e575c1d83ac001deb087007faacc0a1438 Mon Sep 17 00:00:00 2001 From: marius Date: Thu, 24 Apr 2008 22:51:43 +0000 Subject: - vx_stop() requires the driver lock to be held. - Add some missing newlines to messages printed by vx_getlink(). MFC after: 3 days --- sys/dev/vx/if_vx.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/vx') diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index a543440..c810c71 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); } } -- cgit v1.1