Skip to contentSkip to conversation

rt2x00: print warning, notice and info as default

PATCH In review Stanislaw Gruszka 5 participants 19 messages Jan 24, 2013 – Feb 2, 2013 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 rt2x00: print warning, notice and info as default

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

---
 drivers/net/wireless/rt2x00/rt2x00.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +3 -3
index 3e37c19..8ef11b6 100644
@@ -88,11 +88,11 @@
 #define ERROR_PROBE(__msg, __args...) \
 	DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_WARNING, "Warning", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
 #define NOTICE(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
 	DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 2/4 rt2x00: remove NOTICE

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

---
 drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
 drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index a1de95e..1791260 100644
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
 	    rt2x00_rf(rt2x00dev, RF3022))
 		return true;
 
-	NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+	INFO(rt2x00dev, "Unknown RF chipset on rt305x\n");
 	return false;
 }
 
drivers/net/wireless/rt2x00/rt2x00.h +0 -2
index 8ef11b6..ad73942 100644
@@ -89,8 +89,6 @@
 	DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
 	DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
-#define NOTICE(__dev, __msg, __args...) \
-	DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
 	DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
drivers/net/wireless/rt2x00/rt2x00dev.c +2 -2
index 96fffe8..07a9e10 100644
@@ -1440,7 +1440,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);
 #ifdef CONFIG_PM
 int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state)
 {
-	NOTICE(rt2x00dev, "Going to sleep.\n");
+	DEBUG(rt2x00dev, "Going to sleep.\n");
 
 	/*
 	 * Prevent mac80211 from accessing driver while suspended.
@@ -1480,7 +1480,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_suspend);
 
 int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
 {
-	NOTICE(rt2x00dev, "Waking up.\n");
+	DEBUG(rt2x00dev, "Waking up.\n");
 
 	/*
 	 * Restore/enable extra components.
Signature · 1 line
1.7.4.4
#2 lore raw

PATCH 3/4 rt2800usb: move "TX status missed" messages to debug level

Those messages can flood in dmesg, so do not print them by default.

---
 drivers/net/wireless/rt2x00/rt2800usb.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2800usb.c +3 -3
index 011410f..047ead5 100644
@@ -540,9 +540,9 @@ rt2800usb_txdone_entry_check(struct queue_entry *entry, u32 reg)
 	tx_pid  = rt2x00_get_field32(word, TXWI_W1_PACKETID);
 
 	if (wcid != tx_wcid || ack != tx_ack || (!is_agg && pid != tx_pid)) {
-		WARNING(entry->queue->rt2x00dev,
-			"TX status report missed for queue %d entry %d\n",
-			entry->queue->qid, entry->entry_idx);
+		DEBUG(entry->queue->rt2x00dev,
+		      "TX status report missed for queue %d entry %d\n",
+		      entry->queue->qid, entry->entry_idx);
 		return TXDONE_UNKNOWN;
 	}
 
Signature · 1 line
1.7.4.4
#3 lore raw

PATCH 4/4 rt2x00: print queue parameters at debug level

Those messages do not provide interesting information for average user, print them at debug level.

---
 drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00mac.c +3 -3
index ed7a1bb..20c6ecc 100644
@@ -731,9 +731,9 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
 	queue->aifs = params->aifs;
 	queue->txop = params->txop;
 
-	INFO(rt2x00dev,
-	     "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
-	     queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
+	DEBUG(rt2x00dev,
+	      "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
+	      queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
 
 	return 0;
 }
Signature · 1 line
1.7.4.4
Acked-by on v1 4/4
#4 lore raw

Re: [PATCH 4/4] rt2x00: print queue parameters at debug level

Sent from my iPad

Quoted 4 lines · Stanislaw Gruszka

Those messages do not provide interesting information for average user, print them at debug level.

Quoted 28 lines

---
drivers/net/wireless/rt2x00/rt2x00mac.c | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00mac.c +3 -3
index ed7a1bb..20c6ecc 100644
@@ -731,9 +731,9 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
   queue->aifs = params->aifs;
   queue->txop = params->txop;
 
-    INFO(rt2x00dev,
-         "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
-         queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
+    DEBUG(rt2x00dev,
+          "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
+          queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
 
   return 0;
 }
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v1 4/4
#5 lore raw

Re: [PATCH 4/4] rt2x00: print queue parameters at debug level

In reply to Stanislaw Gruszka
Quoted 4 lines · Stanislaw Gruszka

Those messages do not provide interesting information for average user, print them at debug level.

Quoted 28 lines
---
 drivers/net/wireless/rt2x00/rt2x00mac.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00mac.c +3 -4
index ed7a1bb..20c6ecc 100644
@@ -731,9 +731,9 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
        queue->aifs = params->aifs;
        queue->txop = params->txop;
 
-       INFO(rt2x00dev,
-            "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
-            queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
+       DEBUG(rt2x00dev,
+             "Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d.\n",
+             queue_idx, queue->cw_min, queue->cw_max, queue->aifs, queue->txop);
 
        return 0;
 }
--

1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 3/4
#6 lore raw

Re: [PATCH 3/4] rt2800usb: move "TX status missed" messages to debug level

In reply to Stanislaw Gruszka

Sent from my iPad

Quoted 3 lines · Stanislaw Gruszka

Those messages can flood in dmesg, so do not print them by default.

Quoted 28 lines

---
drivers/net/wireless/rt2x00/rt2800usb.c | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2800usb.c +3 -3
index 011410f..047ead5 100644
@@ -540,9 +540,9 @@ rt2800usb_txdone_entry_check(struct queue_entry *entry, u32 reg)
   tx_pid  = rt2x00_get_field32(word, TXWI_W1_PACKETID);
 
   if (wcid != tx_wcid || ack != tx_ack || (!is_agg && pid != tx_pid)) {
-        WARNING(entry->queue->rt2x00dev,
-            "TX status report missed for queue %d entry %d\n",
-            entry->queue->qid, entry->entry_idx);
+        DEBUG(entry->queue->rt2x00dev,
+              "TX status report missed for queue %d entry %d\n",
+              entry->queue->qid, entry->entry_idx);
       return TXDONE_UNKNOWN;
   }
 
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v1 3/4
#7 lore raw

Re: [PATCH 3/4] rt2800usb: move "TX status missed" messages to debug level

In reply to Stanislaw Gruszka
Quoted 3 lines · Stanislaw Gruszka

Those messages can flood in dmesg, so do not print them by default.

Quoted 28 lines
---
 drivers/net/wireless/rt2x00/rt2800usb.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2800usb.c +3 -4
index 011410f..047ead5 100644
@@ -540,9 +540,9 @@ rt2800usb_txdone_entry_check(struct queue_entry *entry, u32 reg)
        tx_pid  = rt2x00_get_field32(word, TXWI_W1_PACKETID);
 
        if (wcid != tx_wcid || ack != tx_ack || (!is_agg && pid != tx_pid)) {
-               WARNING(entry->queue->rt2x00dev,
-                       "TX status report missed for queue %d entry %d\n",
-                       entry->queue->qid, entry->entry_idx);
+               DEBUG(entry->queue->rt2x00dev,
+                     "TX status report missed for queue %d entry %d\n",
+                     entry->queue->qid, entry->entry_idx);
                return TXDONE_UNKNOWN;
        }
 
--

1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 2/4
#8 lore raw

Re: [PATCH 2/4] rt2x00: remove NOTICE

In reply to Stanislaw Gruszka

Sent from my iPad

Quoted 4 lines · Stanislaw Gruszka

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

Quoted 61 lines

---

drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index a1de95e..1791260 100644
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
       rt2x00_rf(rt2x00dev, RF3022))
       return true;
 
-    NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+    INFO(rt2x00dev, "Unknown RF chipset on rt305x\n");
   return false;
 }
 
drivers/net/wireless/rt2x00/rt2x00.h +0 -2
index 8ef11b6..ad73942 100644
@@ -89,8 +89,6 @@
   DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
   DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
-#define NOTICE(__dev, __msg, __args...) \
-    DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
   DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
drivers/net/wireless/rt2x00/rt2x00dev.c +2 -2
index 96fffe8..07a9e10 100644
@@ -1440,7 +1440,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);
 #ifdef CONFIG_PM
 int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state)
 {
-    NOTICE(rt2x00dev, "Going to sleep.\n");
+    DEBUG(rt2x00dev, "Going to sleep.\n");
 
   /*
    * Prevent mac80211 from accessing driver while suspended.
@@ -1480,7 +1480,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_suspend);
 
 int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
 {
-    NOTICE(rt2x00dev, "Waking up.\n");
+    DEBUG(rt2x00dev, "Waking up.\n");
 
   /*
    * Restore/enable extra components.
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

Re: [PATCH 2/4] rt2x00: remove NOTICE

In reply to Stanislaw Gruszka
Quoted 15 lines · Stanislaw Gruszka

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

---
 drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
 drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +0 -0
index a1de95e..1791260 100644

drivers/net/wireless/rt2x00/rt2800lib.c static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) · line 85

Quoted 7 lines
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
            rt2x00_rf(rt2x00dev, RF3022))
                return true;
 
-       NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+       INFO(rt2x00dev, "Unknown RF chipset on rt305x\n");
        return false;
 }

Isn't this more a warning?

Ivo

#10 lore raw

Re: [PATCH 2/4] rt2x00: remove NOTICE

Quoted 19 lines · Ivo Van Doorn
Quoted 18 lines · Stanislaw Gruszka

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

---
 drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
 drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +0 -0
index a1de95e..1791260 100644
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
            rt2x00_rf(rt2x00dev, RF3022))
                return true;
 
Quoted 6 lines

drivers/net/wireless/rt2x00/rt2800lib.c static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev) · line 85

Quoted 4 lines
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
-       NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+       INFO(rt2x00dev, "Unknown RF chipset on rt305x\n");
        return false;
 }

Isn't this more a warning?

Yeah, I'll change that patch.

Stanislaw

#11 lore raw

PATCH v2 2/4 rt2x00: remove NOTICE

In reply to Stanislaw Gruszka

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

---
v1 -> v2 : replace NOTICE by WARNING for unknown RF chipset message.

 drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
 drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index a1de95e..1791260 100644
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
 	    rt2x00_rf(rt2x00dev, RF3022))
 		return true;
 
-	NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+	WARNING(rt2x00dev, "Unknown RF chipset on rt305x\n");
 	return false;
 }
 
drivers/net/wireless/rt2x00/rt2x00.h +0 -2
index 8ef11b6..ad73942 100644
@@ -89,8 +89,6 @@
 	DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
 	DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
-#define NOTICE(__dev, __msg, __args...) \
-	DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
 	DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
drivers/net/wireless/rt2x00/rt2x00dev.c +2 -2
index 96fffe8..07a9e10 100644
@@ -1440,7 +1440,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);
 #ifdef CONFIG_PM
 int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state)
 {
-	NOTICE(rt2x00dev, "Going to sleep.\n");
+	DEBUG(rt2x00dev, "Going to sleep.\n");
 
 	/*
 	 * Prevent mac80211 from accessing driver while suspended.
@@ -1480,7 +1480,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_suspend);
 
 int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
 {
-	NOTICE(rt2x00dev, "Waking up.\n");
+	DEBUG(rt2x00dev, "Waking up.\n");
 
 	/*
 	 * Restore/enable extra components.
Signature · 1 line
1.7.4.4
Acked-by on v2 2/4
#12 lore raw

Re: [PATCH 2/4 v2] rt2x00: remove NOTICE

Quoted 4 lines · Stanislaw Gruszka

We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages.

Quoted 63 lines

---
v1 -> v2 : replace NOTICE by WARNING for unknown RF chipset message.

 drivers/net/wireless/rt2x00/rt2800lib.c |    2 +-
 drivers/net/wireless/rt2x00/rt2x00.h    |    2 --
 drivers/net/wireless/rt2x00/rt2x00dev.c |    4 ++--
 3 files changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2800lib.c +1 -1
index a1de95e..1791260 100644
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
            rt2x00_rf(rt2x00dev, RF3022))
                return true;
 
-       NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n");
+       WARNING(rt2x00dev, "Unknown RF chipset on rt305x\n");
        return false;
 }
 
drivers/net/wireless/rt2x00/rt2x00.h +0 -2
index 8ef11b6..ad73942 100644
@@ -89,8 +89,6 @@
        DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
        DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
-#define NOTICE(__dev, __msg, __args...) \
-       DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
        DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
drivers/net/wireless/rt2x00/rt2x00dev.c +2 -3
index 96fffe8..07a9e10 100644
@@ -1440,7 +1440,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);
 #ifdef CONFIG_PM
 int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state)
 {
-       NOTICE(rt2x00dev, "Going to sleep.\n");
+       DEBUG(rt2x00dev, "Going to sleep.\n");
 
        /*
         * Prevent mac80211 from accessing driver while suspended.
@@ -1480,7 +1480,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_suspend);
 
 int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
 {
-       NOTICE(rt2x00dev, "Waking up.\n");
+       DEBUG(rt2x00dev, "Waking up.\n");
 
        /*
         * Restore/enable extra components.
--

1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 1/4
#13 lore raw
In reply to Stanislaw Gruszka

Sent from my iPad

Quoted 4 lines · Stanislaw Gruszka

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

Thanks for respinning.

Quoted 30 lines

---
drivers/net/wireless/rt2x00/rt2x00.h | 6 +++---

1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +3 -3
index 3e37c19..8ef11b6 100644
@@ -88,11 +88,11 @@
 #define ERROR_PROBE(__msg, __args...) \
   DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_WARNING, "Warning", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
 #define NOTICE(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-    DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+    DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
   DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#14 lore raw
Quoted 10 lines · Gertjan van Wingerde
Quoted 4 lines · Stanislaw Gruszka

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

Thanks for respinning.

Fine with me, however, in the future we could think of just using dynamic debug in rt2x00 (pr_debug etc). Would allow a user to enable debug output selectively during runtime.

Helmut

#15 lore raw
Quoted 9 lines · Helmut Schaa
Quoted 7 lines · Gertjan van Wingerde
Quoted 4 lines · Stanislaw Gruszka

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

Quoted 8 lines
Quoted 3 lines

Thanks for respinning.

Fine with me, however, in the future we could think of just using dynamic debug in rt2x00 (pr_debug etc). Would allow a user to enable debug output selectively during runtime.

I was thinking about the same and I have put the conversion to dynamic debug on my TODO list
(unless someone beats me to it, I will look at this during the weekend).

---
Gertjan

#16 lore raw
Quoted 15 lines · Gertjan van Wingerde
Quoted 13 lines · Helmut Schaa
Quoted 10 lines · Gertjan van Wingerde
Quoted 4 lines · Stanislaw Gruszka

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

Thanks for respinning.

Quoted 8 lines
Quoted 4 lines

Fine with me, however, in the future we could think of just using dynamic debug in rt2x00 (pr_debug etc). Would allow a user to enable debug output selectively during runtime.

I was thinking about the same and I have put the conversion to dynamic debug on my TODO list
(unless someone beats me to it, I will look at this during the weekend).

No worries, I won't be able to beat you :D

#17 lore raw
In reply to Stanislaw Gruszka
Quoted 17 lines · Stanislaw Gruszka

Some messages provide useful information, but are disabled without CONFIG_RT2X00_DEBUG=y, so enable them by default

---
 drivers/net/wireless/rt2x00/rt2x00.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/rt2x00/rt2x00.h +0 -1
index 3e37c19..8ef11b6 100644
@@ -88,11 +88,11 @@
 #define ERROR_PROBE(__msg, __args...) \
 	DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
 #define WARNING(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_WARNING, "Warning", __msg, ##__args)

drivers/net/wireless/rt2x00/rt2x00.h line 98

Quoted 10 lines
drivers/net/wireless/rt2x00/rt2x00.h +3 -2
+	DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
 #define NOTICE(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
 #define INFO(__dev, __msg, __args...) \
-	DEBUG_PRINTK(__dev, KERN_INFO, "Info", __msg, ##__args)
+	DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
 #define DEBUG(__dev, __msg, __args...) \
 	DEBUG_PRINTK(__dev, KERN_DEBUG, "Debug", __msg, ##__args)
 #define EEPROM(__dev, __msg, __args...) \

This patch was applied twice. The old one and this version. See:
28f2bce9f8bbf704c86f8c684337f82c51592c81 def64521572d8330bfa6d855e278507100fdf180

#18 lore raw
Quoted 4 lines · Xose Vazquez Perez

This patch was applied twice. The old one and this version. See:
28f2bce9f8bbf704c86f8c684337f82c51592c81 def64521572d8330bfa6d855e278507100fdf180

forget it!. I misread the subject.
Sorry for the noise.