From 413cd65ff9cefc62114f337d94740b74c47e6743 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 16 Apr 2006 22:33:33 +0000 Subject: Use __func__ to get the current function name, no need to declare a variable for this... --- sys/dev/cardbus/if_fxp_cardbus.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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], -- cgit v1.2.3