From: deraadt Date: Thu, 14 Dec 1995 06:16:14 +0000 (+0000) Subject: from netbsd; print illegal setting messages nicer X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8aac900d6aed15926e7ee44b9e4e2a1a87d8f26f;p=openbsd from netbsd; print illegal setting messages nicer --- 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; }