Use aprint_*, device_xname.

This commit is contained in:
uwe 2008-02-17 06:03:13 +00:00
parent cf7d73cb17
commit 67b202aca8

View File

@ -1,4 +1,4 @@
/* $NetBSD: hd64461pcmcia.c,v 1.40 2008/02/17 05:38:30 uwe Exp $ */ /* $NetBSD: hd64461pcmcia.c,v 1.41 2008/02/17 06:03:13 uwe Exp $ */
/*- /*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.40 2008/02/17 05:38:30 uwe Exp $"); __KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.41 2008/02/17 06:03:13 uwe Exp $");
#include "opt_hd64461pcmcia.h" #include "opt_hd64461pcmcia.h"
@ -260,15 +260,18 @@ hd64461pcmcia_attach(struct device *parent, struct device *self, void *aux)
sc->sc_module_id = ha->ha_module_id; sc->sc_module_id = ha->ha_module_id;
printf("\n"); aprint_naive("\n");
aprint_normal("\n");
#ifdef HD64461PCMCIA_DEBUG #ifdef HD64461PCMCIA_DEBUG
hd64461pcmcia_info(sc); hd64461pcmcia_info(sc);
#endif #endif
/* Channel 0/1 common CSC event queue */ /* Channel 0/1 common CSC event queue */
SIMPLEQ_INIT (&sc->sc_event_head); SIMPLEQ_INIT (&sc->sc_event_head);
error = kthread_create(PRI_NONE, 0, NULL, hd64461pcmcia_event_thread, error = kthread_create(PRI_NONE, 0, NULL,
sc, &sc->sc_event_thread, "%s", sc->sc_dev.dv_xname); hd64461pcmcia_event_thread, sc,
&sc->sc_event_thread,
"%s", device_xname(self));
KASSERT(error == 0); KASSERT(error == 0);
#if !defined(HD64461PCMCIA_REORDER_ATTACH) #if !defined(HD64461PCMCIA_REORDER_ATTACH)