diff options
author | bde <bde@FreeBSD.org> | 1998-08-10 20:47:22 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-10 20:47:22 +0000 |
commit | 7ee8c191d242049ac8463de119b05d4e25bcee7c (patch) | |
tree | a02f09e0e4528a6119dc7c4ca33dee39818a2049 /sys/dev/rc | |
parent | fffb5f99d83db056ab8dfeca8e56252d5ffdb689 (diff) | |
download | FreeBSD-src-7ee8c191d242049ac8463de119b05d4e25bcee7c.zip FreeBSD-src-7ee8c191d242049ac8463de119b05d4e25bcee7c.tar.gz |
Fixed null setting of multiple wakeup prevention variable.
Fixed printf format errors.
Diffstat (limited to 'sys/dev/rc')
-rw-r--r-- | sys/dev/rc/rc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 31d738c..24e7343 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -205,11 +205,11 @@ rcprobe(dvp) if (dvp->id_unit > NRC) return 0; if (!RC_VALIDADDR(nec)) { - printf("rc%d: illegal base address %x\n", nec); + printf("rc%d: illegal base address %x\n", dvp->id_unit, nec); return 0; } if (!RC_VALIDIRQ(irq)) { - printf("rc%d: illegal IRQ value %d\n", irq); + printf("rc%d: illegal IRQ value %d\n", dvp->id_unit, irq); return 0; } rcout(CD180_PPRL, 0x22); /* Random values to Prescale reg. */ @@ -273,7 +273,7 @@ rcattach(dvp) rcb->rcb_probed = RC_ATTACHED; if (!rc_wakeup_started) { rc_wakeup((void *)NULL); - rc_wakeup_started = 0; + rc_wakeup_started = 1; } return 1; } |