summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:16:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 06:16:15 +0000
commit5e4fa22c30fbce856024f594901926e7f692b5b8 (patch)
tree197fcac9b178cc4e88df5359746689ffa6cd35c9
parent8243cdb8efad3683da8c36946b228f9bbba8c944 (diff)
from netbsd; print illegal setting messages nicer
-rw-r--r--sys/dev/isa/aha.c6
-rw-r--r--sys/dev/isa/aha1542.c6
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;
}