diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 06:34:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 06:34:03 +0000 |
commit | c09501e3eeee6de4d62b516c7eb26287e4978ebc (patch) | |
tree | 58eb2fd54c70759adee9758cba2ab2ce6921a939 /sys | |
parent | e13e1edf92f61f9aacecd214dbf9320e7be8c1f7 (diff) |
from netbsd; print nicer messages
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/ultra14f.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/isa/ultra14f.c b/sys/dev/isa/ultra14f.c index 849d486bc6d..ba1a727f688 100644 --- a/sys/dev/isa/ultra14f.c +++ b/sys/dev/isa/ultra14f.c @@ -1,4 +1,4 @@ -/* $NetBSD: ultra14f.c,v 1.57 1995/10/04 00:35:07 mycroft Exp $ */ +/* $NetBSD: ultra14f.c,v 1.58 1995/11/10 04:42:07 mycroft Exp $ */ /* * Copyright (c) 1994 Charles Hannum. All rights reserved. @@ -66,7 +66,6 @@ #include <machine/pio.h> #include <dev/isa/isavar.h> -#include <dev/isa/isadmavar.h> #include <scsi/scsi_all.h> #include <scsi/scsiconf.h> @@ -942,7 +941,8 @@ u14_find(uha, ia) uha->sc_drq = 7; break; default: - printf("illegal dma setting %x\n", config & U14_DMA_MASK); + printf("%s: illegal drq setting %x\n", + uha->sc_dev.dv_xname, config & U14_DMA_MASK); return EIO; } break; @@ -962,7 +962,8 @@ u14_find(uha, ia) uha->sc_irq = 15; break; default: - printf("illegal int setting %x\n", config & U14_IRQ_MASK); + printf("%s: illegal irq setting %x\n", uha->sc_dev.dv_xname, + config & U14_IRQ_MASK); return EIO; } @@ -1042,8 +1043,6 @@ u24_find(uha, ia) uha_id = config2 & U24_HOSTID_MASK; uha->sc_drq = DRQUNK; - uha->sc_iobase = iobase; - ia->ia_iobase = iobase; switch (irq_ch) { case U24_IRQ10: @@ -1059,7 +1058,8 @@ u24_find(uha, ia) uha->sc_irq = 15; break; default: - printf("illegal int setting %x\n", irq_ch); + printf("%s: illegal irq setting %x\n", + uha->sc_dev.dv_xname, irq_ch); continue; } |