summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-04-16 22:33:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-04-16 22:33:33 +0000
commit413cd65ff9cefc62114f337d94740b74c47e6743 (patch)
tree46fcf25e29562f61327676f223efd671b4811520 /sys/dev/cardbus
parent4db8070a1484fd3bbdf6d4a3f8f0b9e95e7bca94 (diff)
Use __func__ to get the current function name, no need to declare a variable
for this...
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r--sys/dev/cardbus/if_fxp_cardbus.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/cardbus/if_fxp_cardbus.c b/sys/dev/cardbus/if_fxp_cardbus.c
index d31d5fe29cc..17ae2542eba 100644
--- a/sys/dev/cardbus/if_fxp_cardbus.c
+++ b/sys/dev/cardbus/if_fxp_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fxp_cardbus.c,v 1.12 2006/01/01 19:06:43 brad Exp $ */
+/* $OpenBSD: if_fxp_cardbus.c,v 1.13 2006/04/16 22:33:32 miod Exp $ */
/* $NetBSD: if_fxp_cardbus.c,v 1.12 2000/05/08 18:23:36 thorpej Exp $ */
/*
@@ -130,8 +130,6 @@ fxp_cardbus_attach(parent, self, aux)
struct device *parent, *self;
void *aux;
{
- static const char thisfunc[] = "fxp_cardbus_attach";
-
char intrstr[16];
struct fxp_softc *sc = (struct fxp_softc *) self;
struct fxp_cardbus_softc *csc = (struct fxp_cardbus_softc *) self;
@@ -165,7 +163,7 @@ fxp_cardbus_attach(parent, self, aux)
sc->sc_sh = memh;
csc->size = size;
} else
- panic("%s: failed to allocate mem and io space", thisfunc);
+ panic("%s: failed to allocate mem and io space", __func__);
if (ca->ca_cis.cis1_info[0] && ca->ca_cis.cis1_info[1])
printf(": %s %s", ca->ca_cis.cis1_info[0],