diff options
author | marius <marius@FreeBSD.org> | 2008-04-24 22:51:43 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-04-24 22:51:43 +0000 |
commit | 986c42e575c1d83ac001deb087007faacc0a1438 (patch) | |
tree | 49a995ed3f6cf0ada8b1294fe6d32c0c30cf4789 /sys/dev/vx | |
parent | f40a7a090aab840dcc24ca325caa00070a96ed7c (diff) | |
download | FreeBSD-src-986c42e575c1d83ac001deb087007faacc0a1438.zip FreeBSD-src-986c42e575c1d83ac001deb087007faacc0a1438.tar.gz |
- vx_stop() requires the driver lock to be held.
- Add some missing newlines to messages printed by vx_getlink().
MFC after: 3 days
Diffstat (limited to 'sys/dev/vx')
-rw-r--r-- | sys/dev/vx/if_vx.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); } } |