from netbsd; print illegal setting messages nicer
authorderaadt <deraadt@openbsd.org>
Thu, 14 Dec 1995 06:16:14 +0000 (06:16 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 14 Dec 1995 06:16:14 +0000 (06:16 +0000)
sys/dev/isa/aha.c
sys/dev/isa/aha1542.c

index 323bdd5..50acf16 100644 (file)
@@ -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;
        }
 
index 323bdd5..50acf16 100644 (file)
@@ -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;
        }