#include "wil6210.h"
#include "trace.h"
--int wil_err(struct wil6210_priv *wil, const char *fmt, ...)
++void wil_err(struct wil6210_priv *wil, const char *fmt, ...)
{
struct net_device *ndev = wil_to_ndev(wil);
struct va_format vaf = {
.fmt = fmt,
};
va_list args;
-- int ret;
va_start(args, fmt);
vaf.va = &args;
-- ret = netdev_err(ndev, "%pV", &vaf);
++ netdev_err(ndev, "%pV", &vaf);
trace_wil6210_log_err(&vaf);
va_end(args);
--
-- return ret;
}
--int wil_info(struct wil6210_priv *wil, const char *fmt, ...)
++void wil_info(struct wil6210_priv *wil, const char *fmt, ...)
{
struct net_device *ndev = wil_to_ndev(wil);
struct va_format vaf = {
.fmt = fmt,
};
va_list args;
-- int ret;
va_start(args, fmt);
vaf.va = &args;
-- ret = netdev_info(ndev, "%pV", &vaf);
++ netdev_info(ndev, "%pV", &vaf);
trace_wil6210_log_info(&vaf);
va_end(args);
--
-- return ret;
}
--int wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...)
++void wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...)
{
struct va_format vaf = {
.fmt = fmt,
vaf.va = &args;
trace_wil6210_log_dbg(&vaf);
va_end(args);
--
-- return 0;
}
#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w))
#define wil_to_ndev(i) (wil_to_wdev(i)->netdev)
#define ndev_to_wil(n) (wdev_to_wil(n->ieee80211_ptr))
+ #define wil_to_pcie_dev(i) (&i->pdev->dev)
--int wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...);
--int wil_err(struct wil6210_priv *wil, const char *fmt, ...);
--int wil_info(struct wil6210_priv *wil, const char *fmt, ...);
++void wil_dbg_trace(struct wil6210_priv *wil, const char *fmt, ...);
++void wil_err(struct wil6210_priv *wil, const char *fmt, ...);
++void wil_info(struct wil6210_priv *wil, const char *fmt, ...);
#define wil_dbg(wil, fmt, arg...) do { \
netdev_dbg(wil_to_ndev(wil), fmt, ##arg); \
wil_dbg_trace(wil, fmt, ##arg); \