diff options
author | phk <phk@FreeBSD.org> | 1994-10-26 00:16:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-26 00:16:20 +0000 |
commit | 3a3984ac2ab40c104a6099be59ee67d44410159c (patch) | |
tree | 5a8a231114524c3c94c9f2ad7b70be2e93f8008f /sys/dev/ie | |
parent | cf28ffb3ff8f7a49174e9fd4221657eee0d58263 (diff) | |
download | FreeBSD-src-3a3984ac2ab40c104a6099be59ee67d44410159c.zip FreeBSD-src-3a3984ac2ab40c104a6099be59ee67d44410159c.tar.gz |
Fixed a couple of wrong printfs (too few arguments supplied). Also zapped
a couple of unused vars at the same time. Added a #include <sys/proc.h>
to isa.c while here anyway.
Diffstat (limited to 'sys/dev/ie')
-rw-r--r-- | sys/dev/ie/if_ie.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index fc42848..6e3fded 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ie.c,v 1.16 1994/10/19 01:59:00 wollman Exp $ + * $Id: if_ie.c,v 1.17 1994/10/23 21:27:20 wollman Exp $ */ /* @@ -459,7 +459,7 @@ static int el_probe(dvp) c = (inb(PORT + IE507_MADDR) & 0x1c) + 0xc0; if (kvtop(dvp->id_maddr) != ((int)c << 12)) { - printf("ie%d: kernel configured maddr %x doesn't match board configured maddr %x\n", + printf("ie%d: kernel configured maddr %lx doesn't match board configured maddr %x\n", unit, kvtop(dvp->id_maddr),(int)c << 12); return 0; } @@ -504,8 +504,6 @@ static int ni_probe(dvp) int unit = dvp->id_unit; int boardtype, c; -struct ie_softc *ie = &ie_softc[unit]; - ie_softc[unit].port = dvp->id_iobase; ie_softc[unit].iomembot = dvp->id_maddr; ie_softc[unit].iomem = 0; @@ -1639,7 +1637,7 @@ static void run_tdr(unit, cmd) printf("ie%d: TDR detected a short %d clocks away\n", unit, result & IE_TDR_TIME); } else { - printf("ie%d: TDR returned unknown status %x\n", result); + printf("ie%d: TDR returned unknown status %x\n", unit, result); } } |