aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-28 12:45:38 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-06-29 08:28:59 -0400
commit346c265a48169d73a69c88ce9d6b65e6bb3b1f20 (patch)
tree8471fc3b0d8d942bffcea5da38d7feaa78bb97e2 /drivers/net/wireless/iwlwifi
parentd6f1c316346c95b0a280954d5afca29459921a24 (diff)
iwlwifi: fix debug message level
Debug messages should be printed using dev_dbg() not dev_err() which requires DEBUG to be defined. Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.c b/drivers/net/wireless/iwlwifi/iwl-debug.c
index 0f8fcd1d4fe2..87535a67de76 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debug.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debug.c
@@ -61,6 +61,9 @@
61 * 61 *
62 *****************************************************************************/ 62 *****************************************************************************/
63 63
64#define DEBUG
65
66#include <linux/device.h>
64#include <linux/interrupt.h> 67#include <linux/interrupt.h>
65#include <linux/export.h> 68#include <linux/export.h>
66#include "iwl-debug.h" 69#include "iwl-debug.h"
@@ -124,7 +127,7 @@ void __iwl_dbg(struct device *dev,
124#ifdef CONFIG_IWLWIFI_DEBUG 127#ifdef CONFIG_IWLWIFI_DEBUG
125 if (iwl_have_debug_level(level) && 128 if (iwl_have_debug_level(level) &&
126 (!limit || net_ratelimit())) 129 (!limit || net_ratelimit()))
127 dev_err(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U', 130 dev_dbg(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U',
128 function, &vaf); 131 function, &vaf);
129#endif 132#endif
130 trace_iwlwifi_dbg(level, in_interrupt(), function, &vaf); 133 trace_iwlwifi_dbg(level, in_interrupt(), function, &vaf);