summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-07-27 14:21:16 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-07-27 14:21:16 +0000
commitce06861314799b65bd06022e95d7e9b5114294e9 (patch)
tree4843e2d752f9117761a4622cc33dec9fdc701bdd /sys/net80211/ieee80211.c
parent1287ac99c3d7a89c43b1e4c836754c41123ca5ad (diff)
s/IEEE80211_DPRINTF/DPRINTF/
automatically prepend __func__ to output. deobfuscates debug messages a bit. no binary change unless compiled with IEEE80211_DEBUG.
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 5e64258b045..3d4fc6c7ea4 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211.c,v 1.32 2008/07/21 19:27:26 damien Exp $ */
+/* $OpenBSD: ieee80211.c,v 1.33 2008/07/27 14:21:15 damien Exp $ */
/* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */
/*-
@@ -666,8 +666,8 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode)
/* validate new mode */
if ((ic->ic_modecaps & (1<<mode)) == 0) {
- IEEE80211_DPRINTF(("%s: mode %u not supported (caps 0x%x)\n",
- __func__, mode, ic->ic_modecaps));
+ DPRINTF(("mode %u not supported (caps 0x%x)\n",
+ mode, ic->ic_modecaps));
return EINVAL;
}
@@ -690,8 +690,7 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode)
}
}
if (i > IEEE80211_CHAN_MAX) {
- IEEE80211_DPRINTF(("%s: no channels found for mode %u\n",
- __func__, mode));
+ DPRINTF(("no channels found for mode %u\n", mode));
return EINVAL;
}
@@ -957,7 +956,7 @@ ieee80211_rate2plcp(u_int8_t rate, enum ieee80211_phymode mode)
} else
panic("Unexpected mode %u", mode);
- IEEE80211_DPRINTF(("%s: unsupported rate %u\n", __func__, rate));
+ DPRINTF(("unsupported rate %u\n", rate));
return 0;
}
@@ -988,9 +987,9 @@ ieee80211_plcp2rate(u_int8_t plcp, enum ieee80211_phymode mode)
case 0x0c: return 108;
}
} else
- panic("Unexpected mode %u", mode);
+ panic("unexpected mode %u", mode);
- IEEE80211_DPRINTF(("%s: unsupported plcp %u\n", __func__, plcp));
+ DPRINTF(("unsupported plcp %u\n", plcp));
return 0;
}