diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 1999-10-02 17:40:07 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 1999-10-02 17:40:07 +0000 |
| commit | fe76c677ea07c6b9c663ed48c866d45e847a8ed8 (patch) | |
| tree | beaa07e72ea8cb664784ad09a2e838cf900529a6 /sys/dev/aha | |
| parent | 342079173e8720b832063262b8a295defb99d004 (diff) | |
Notes
Diffstat (limited to 'sys/dev/aha')
| -rw-r--r-- | sys/dev/aha/aha.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index 458ff062ae6b..223e12bd3468 100644 --- a/sys/dev/aha/aha.c +++ b/sys/dev/aha/aha.c @@ -330,8 +330,7 @@ aha_probe(struct aha_softc* aha) * looking at a BusLogic. */ if ((error = ahareset(aha, /*hard_reset*/TRUE)) != 0) { - if (bootverbose) - printf("%s: Failed Reset\n", aha_name(aha)); + PRVERB(("%s: Failed Reset\n", aha_name(aha))); return (ENXIO); } @@ -1704,7 +1703,8 @@ aha_cmd(struct aha_softc *aha, aha_op_t opcode, u_int8_t *params, */ cmd_complete = 1; saved_status = status; - } else if ((status & DATAIN_REG_READY) != 0) { + } + if ((status & DATAIN_REG_READY) != 0) { u_int8_t data; data = aha_inb(aha, DATAIN_REG); @@ -1767,11 +1767,16 @@ aha_cmd(struct aha_softc *aha, aha_op_t opcode, u_int8_t *params, if (param_len > 0) { /* The controller did not accept the full argument list */ + PRVERB(("%s: Controller did not accept full argument list " + "(%d > 0)\n", + aha_name(aha), param_len)); return (E2BIG); } if (reply_len != reply_buf_size) { /* Too much or too little data received */ + PRVERB(("%s: Too much or too little data received (%d != %d)\n", + aha_name(aha), reply_len, reply_buf_size)); return (EMSGSIZE); } |
