From e0b577bb5d774a40eefc49e254f4c63d73c80ce8 Mon Sep 17 00:00:00 2001 From: proski Date: Fri, 23 Jan 2009 18:23:19 +0000 Subject: [PATCH] Replace __FUNCTION__ with __func__ __FUNCTION__ is an old GNU extension, __func__ is C99. Use of __FUNCTION__ is discouraged. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3930 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 2 +- net80211/ieee80211_wireless.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 435e3e3..b2a264d 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -5368,7 +5368,7 @@ ath_beacon_send(struct ath_softc *sc, int *needmark, uint64_t hw_tsf) else if (sc->sc_beacon_cal) { printk("%s: %s: now=%lu lastcal=%lu expires=%lu remaining=%u ms\n", SC_DEV_NAME(sc), - __FUNCTION__, + __func__, jiffies (sc->sc_lastcal) (sc->sc_lastcal + (sc->sc_calinterval_sec * HZ)) diff --git a/net80211/ieee80211_wireless.c b/net80211/ieee80211_wireless.c index 8a18f2c..0b646a3 100644 --- a/net80211/ieee80211_wireless.c +++ b/net80211/ieee80211_wireless.c @@ -4243,7 +4243,7 @@ get_scan_result(void *arg, const struct ieee80211_scan_entry *se) len = scan_space(se, &ielen); if (len > req->space) { - printk("[madwifi] %s() : Not enough space.\n", __FUNCTION__); + printk("[madwifi] %s() : Not enough space.\n", __func__); return 0; } -- 2.35.1