diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 12:10:04 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 12:10:04 +0000 |
commit | cd4dc1656185c830b3fa770158374aa783c82581 (patch) | |
tree | a018f4a69085390d3d1045a3638e40f3a61822cd | |
parent | 443e17683595a50bf36ab2cf49740dc61098d38c (diff) |
fix dmesg output.
-rw-r--r-- | sys/dev/cardbus/if_ral_cardbus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/cardbus/if_ral_cardbus.c b/sys/dev/cardbus/if_ral_cardbus.c index 46776c3fc86..4e1186f7cc0 100644 --- a/sys/dev/cardbus/if_ral_cardbus.c +++ b/sys/dev/cardbus/if_ral_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral_cardbus.c,v 1.2 2005/02/18 19:57:26 damien Exp $ */ +/* $OpenBSD: if_ral_cardbus.c,v 1.3 2005/02/19 12:10:03 damien Exp $ */ /*- * Copyright (c) 2005 @@ -107,8 +107,6 @@ ral_cardbus_attach(struct device *parent, struct device *self, void *aux) csc->sc_tag = ca->ca_tag; csc->sc_intrline = ca->ca_intrline; - printf("\n"); - /* power management hooks */ sc->sc_enable = ral_cardbus_enable; sc->sc_disable = ral_cardbus_disable; @@ -133,6 +131,8 @@ ral_cardbus_attach(struct device *parent, struct device *self, void *aux) /* set up the PCI configuration registers */ ral_cardbus_setup(csc); + printf(": irq %d", csc->sc_intrline); + ral_attach(sc); Cardbus_function_disable(ct); @@ -183,11 +183,11 @@ ral_cardbus_enable(struct ral_softc *sc) csc->sc_ih = cardbus_intr_establish(cc, cf, csc->sc_intrline, IPL_NET, ral_intr, sc); if (csc->sc_ih == NULL) { - printf(": could not establish interrupt\n"); + printf("%s: could not establish interrupt at %d\n", + sc->sc_dev.dv_xname, csc->sc_intrline); Cardbus_function_disable(ct); return 1; } - printf(" irq %d\n", csc->sc_intrline); return 0; } |