diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-31 16:58:03 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-12-31 16:58:03 +0000 |
commit | 84a7383cb38f1569555b9d60d81b76f7b2670201 (patch) | |
tree | 3ece9aca3fb654333dc895d265d63a08b68faec1 /sys | |
parent | 37ad5b274d5005311b0014f415362993680a9e66 (diff) |
Add a debug printf to warn when malo_init() fails and resets the card.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/malo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c index 96c1621a571..7fc337b850c 100644 --- a/sys/dev/ic/malo.c +++ b/sys/dev/ic/malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malo.c,v 1.60 2006/12/31 16:50:31 claudio Exp $ */ +/* $OpenBSD: malo.c,v 1.61 2006/12/31 16:58:02 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -960,6 +960,8 @@ malo_init(struct ifnet *ifp) fail: /* reset adapter */ + DPRINTF(("%s: malo_init failed, reseting card\n", + sc->sc_dev.dv_xname)); malo_ctl_write4(sc, 0x0c18, (1 << 15)); return (error); } |