diff options
| author | abs <abs@NetBSD.org> | 1999-02-21 02:07:52 +0000 |
|---|---|---|
| committer | abs <abs@NetBSD.org> | 1999-02-21 02:07:52 +0000 |
| commit | b86f85e1cc59dec166cd3be5e40b9abf5222e8b5 (patch) | |
| tree | 1ef7849e799f6efa44e5fd9e5b2caaaa59ec142a /sys/dev | |
| parent | ed418e30a25cab9276af8236ed4e6301bc450095 (diff) | |
wdcwait is called initially without any device on my thinkpad.
This breaks the first WDCDEBUG_PRINT. Handle this case.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/wdc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 95db6f26a88..3ca8d44a888 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc.c,v 1.59 1999/02/20 23:47:52 hubertf Exp $ */ +/* $NetBSD: wdc.c,v 1.60 1999/02/21 02:07:52 abs Exp $ */ /* @@ -645,8 +645,9 @@ wdcwait(chp, mask, bits, timeout) #ifdef WDCNDELAY_DEBUG extern int cold; #endif - WDCDEBUG_PRINT(("wdcwait %s:%d\n", chp->wdc->sc_dev.dv_xname, - chp->channel), DEBUG_STATUS); + + WDCDEBUG_PRINT(("wdcwait %s:%d\n", chp->wdc ?chp->wdc->sc_dev.dv_xname + :"none", chp->channel), DEBUG_STATUS); chp->ch_error = 0; timeout = timeout * 1000 / WDCDELAY; /* delay uses microseconds */ |
