From cd4dc1656185c830b3fa770158374aa783c82581 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 19 Feb 2005 12:10:04 +0000 Subject: fix dmesg output. --- sys/dev/cardbus/if_ral_cardbus.c | 10 +++++----- 1 file 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; } -- cgit v1.2.3