2009-07-07 15:46:22 +04:00
|
|
|
/* bug in tracepoint.h, it should include this */
|
|
|
|
#include <linux/module.h>
|
|
|
|
|
2009-07-29 17:46:21 +04:00
|
|
|
/* sparse isn't too happy with all macros... */
|
|
|
|
#ifndef __CHECKER__
|
2012-06-22 15:36:25 +04:00
|
|
|
#include <net/cfg80211.h>
|
2009-07-07 15:46:22 +04:00
|
|
|
#include "driver-ops.h"
|
2012-06-22 15:36:25 +04:00
|
|
|
#include "debug.h"
|
2009-07-07 15:46:22 +04:00
|
|
|
#define CREATE_TRACE_POINTS
|
2012-06-22 14:55:52 +04:00
|
|
|
#include "trace.h"
|
2015-04-07 06:02:22 +03:00
|
|
|
#include "trace_msg.h"
|
2012-06-22 15:36:25 +04:00
|
|
|
|
|
|
|
#ifdef CONFIG_MAC80211_MESSAGE_TRACING
|
|
|
|
void __sdata_info(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
struct va_format vaf = {
|
|
|
|
.fmt = fmt,
|
|
|
|
};
|
|
|
|
va_list args;
|
|
|
|
|
|
|
|
va_start(args, fmt);
|
|
|
|
vaf.va = &args;
|
|
|
|
|
|
|
|
pr_info("%pV", &vaf);
|
|
|
|
trace_mac80211_info(&vaf);
|
|
|
|
va_end(args);
|
|
|
|
}
|
|
|
|
|
|
|
|
void __sdata_dbg(bool print, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
struct va_format vaf = {
|
|
|
|
.fmt = fmt,
|
|
|
|
};
|
|
|
|
va_list args;
|
|
|
|
|
|
|
|
va_start(args, fmt);
|
|
|
|
vaf.va = &args;
|
|
|
|
|
|
|
|
if (print)
|
|
|
|
pr_debug("%pV", &vaf);
|
|
|
|
trace_mac80211_dbg(&vaf);
|
|
|
|
va_end(args);
|
|
|
|
}
|
|
|
|
|
|
|
|
void __sdata_err(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
struct va_format vaf = {
|
|
|
|
.fmt = fmt,
|
|
|
|
};
|
|
|
|
va_list args;
|
|
|
|
|
|
|
|
va_start(args, fmt);
|
|
|
|
vaf.va = &args;
|
|
|
|
|
|
|
|
pr_err("%pV", &vaf);
|
|
|
|
trace_mac80211_err(&vaf);
|
|
|
|
va_end(args);
|
|
|
|
}
|
|
|
|
|
|
|
|
void __wiphy_dbg(struct wiphy *wiphy, bool print, const char *fmt, ...)
|
|
|
|
{
|
|
|
|
struct va_format vaf = {
|
|
|
|
.fmt = fmt,
|
|
|
|
};
|
|
|
|
va_list args;
|
|
|
|
|
|
|
|
va_start(args, fmt);
|
|
|
|
vaf.va = &args;
|
|
|
|
|
|
|
|
if (print)
|
|
|
|
wiphy_dbg(wiphy, "%pV", &vaf);
|
|
|
|
trace_mac80211_dbg(&vaf);
|
|
|
|
va_end(args);
|
|
|
|
}
|
|
|
|
#endif
|
2009-07-29 17:46:21 +04:00
|
|
|
#endif
|