summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-12-06 13:13:07 -0800
committerJohn W. Linville <linville@tuxdriver.com>2010-12-07 16:54:24 -0500
commitd7fd1b50a51be3fe6554fbab8953fa8a3ff4009b (patch)
tree9605e6c7784169d82f6b9e28bb38036fa4f02ec0 /drivers/net/wireless/ath/ath.h
parent1435894dcd263fdbdd5e1ea2a684289dff187c34 (diff)
downloadlinux-stable-d7fd1b50a51be3fe6554fbab8953fa8a3ff4009b.tar.gz
linux-stable-d7fd1b50a51be3fe6554fbab8953fa8a3ff4009b.tar.bz2
linux-stable-d7fd1b50a51be3fe6554fbab8953fa8a3ff4009b.zip
ath9k: Make DMA warning in ath_stoprecv WARN_ON_ONCE.
This decreases spammage in the log. A single line message will still be printed, so users can be aware that problem exists. Signed-off-by: Ben Greear <greearb@candelatech.com> Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r--drivers/net/wireless/ath/ath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index dd78ad13ea03..272dfef25453 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -267,6 +267,7 @@ enum ATH_DEBUG {
rtn; \
})
#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
+#define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo)
#else
@@ -277,6 +278,7 @@ ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
return 0;
}
#define ATH_DBG_WARN(foo, arg...) do {} while (0)
+#define ATH_DBG_WARN_ON_ONCE(foo) do {} while (0)
#endif /* CONFIG_ATH_DEBUG */