diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 06:16:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-14 06:16:15 +0000 |
commit | 5e4fa22c30fbce856024f594901926e7f692b5b8 (patch) | |
tree | 197fcac9b178cc4e88df5359746689ffa6cd35c9 | |
parent | 8243cdb8efad3683da8c36946b228f9bbba8c944 (diff) |
from netbsd; print illegal setting messages nicer
-rw-r--r-- | sys/dev/isa/aha.c | 6 | ||||
-rw-r--r-- | sys/dev/isa/aha1542.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c index 323bdd5d285..50acf16c43a 100644 --- a/sys/dev/isa/aha.c +++ b/sys/dev/isa/aha.c @@ -1097,7 +1097,8 @@ noinquire: aha->sc_drq = 7; break; default: - printf("illegal dma setting %x\n", conf.chan); + printf("%s: illegal drq setting %x\n", aha->sc_dev.dv_xname, + conf.chan); return EIO; } @@ -1121,7 +1122,8 @@ noinquire: aha->sc_irq = 15; break; default: - printf("illegal int setting %x\n", conf.intr); + printf("%s: illegal irq setting %x\n", aha->sc_dev.dv_xname, + conf.intr); return EIO; } diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index 323bdd5d285..50acf16c43a 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -1097,7 +1097,8 @@ noinquire: aha->sc_drq = 7; break; default: - printf("illegal dma setting %x\n", conf.chan); + printf("%s: illegal drq setting %x\n", aha->sc_dev.dv_xname, + conf.chan); return EIO; } @@ -1121,7 +1122,8 @@ noinquire: aha->sc_irq = 15; break; default: - printf("illegal int setting %x\n", conf.intr); + printf("%s: illegal irq setting %x\n", aha->sc_dev.dv_xname, + conf.intr); return EIO; } |