1 // SPDX-License-Identifier: GPL-2.0
2 /* bug in tracepoint.h, it should include this */
3 #include <linux/module.h>
5 /* sparse isn't too happy with all macros... */
7 #include <net/cfg80211.h>
8 #include "driver-ops.h"
10 #define CREATE_TRACE_POINTS
12 #include "trace_msg.h"
14 #ifdef CONFIG_MAC80211_MESSAGE_TRACING
15 void __sdata_info(const char *fmt
, ...)
17 struct va_format vaf
= {
26 trace_mac80211_info(&vaf
);
30 void __sdata_dbg(bool print
, const char *fmt
, ...)
32 struct va_format vaf
= {
41 pr_debug("%pV", &vaf
);
42 trace_mac80211_dbg(&vaf
);
46 void __sdata_err(const char *fmt
, ...)
48 struct va_format vaf
= {
57 trace_mac80211_err(&vaf
);
61 void __wiphy_dbg(struct wiphy
*wiphy
, bool print
, const char *fmt
, ...)
63 struct va_format vaf
= {
72 wiphy_dbg(wiphy
, "%pV", &vaf
);
73 trace_mac80211_dbg(&vaf
);