]> Pileus Git - ~andy/linux/commitdiff
iwlwifi: fix debug message level
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Jun 2012 16:45:38 +0000 (18:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2012 12:28:59 +0000 (14:28 +0200)
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>
drivers/net/wireless/iwlwifi/iwl-debug.c

index 0f8fcd1d4fe2a00a4d5958f4f1ea4cd1f8377420..87535a67de7663f4e134a81f04237fcf72bd7b80 100644 (file)
@@ -61,6 +61,9 @@
  *
  *****************************************************************************/
 
+#define DEBUG
+
+#include <linux/device.h>
 #include <linux/interrupt.h>
 #include <linux/export.h>
 #include "iwl-debug.h"
@@ -124,7 +127,7 @@ void __iwl_dbg(struct device *dev,
 #ifdef CONFIG_IWLWIFI_DEBUG
        if (iwl_have_debug_level(level) &&
            (!limit || net_ratelimit()))
-               dev_err(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U',
+               dev_dbg(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U',
                        function, &vaf);
 #endif
        trace_iwlwifi_dbg(level, in_interrupt(), function, &vaf);