]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlegacy: remove DEBUG_LIMIT
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 16 Aug 2011 13:36:33 +0000 (15:36 +0200)
committerStanislaw Gruszka <sgruszka@redhat.com>
Tue, 15 Nov 2011 10:17:10 +0000 (11:17 +0100)
Even if messages are generating fast we want to see all of them
when debugging.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
drivers/net/wireless/iwlegacy/iwl-3945.c
drivers/net/wireless/iwlegacy/iwl-4965-lib.c
drivers/net/wireless/iwlegacy/iwl-4965-rs.c
drivers/net/wireless/iwlegacy/iwl-4965.c
drivers/net/wireless/iwlegacy/iwl-debug.h

index c9b5dcf446b4db61e1a187f463247d50eb19863e..628adf59ce7b630df0f01a389e95cb03d2f46a26 100644 (file)
@@ -477,7 +477,7 @@ static void il3945_pass_packet_to_mac80211(struct il_priv *il,
 
        /* We only process data packets if the interface is open */
        if (unlikely(!il->is_open)) {
-               IL_DEBUG_DROP_LIMIT(il,
+               IL_DEBUG_DROP(il,
                        "Dropping packet while interface is not open.\n");
                return;
        }
@@ -563,7 +563,7 @@ static void il3945_rx_reply_rx(struct il_priv *il,
 
        network_packet = il3945_is_network_packet(il, header);
 
-       IL_DEBUG_STATS_LIMIT(il, "[%c] %d RSSI:%d Signal:%u, Rate:%u\n",
+       IL_DEBUG_STATS(il, "[%c] %d RSSI:%d Signal:%u, Rate:%u\n",
                              network_packet ? '*' : ' ',
                              le16_to_cpu(rx_hdr->channel),
                              rx_status.signal, rx_status.signal,
index 647399ed0a0cb77e35945a27bf5f61dfc6d55aa2..156462973e6b1029a1a2551ac068a2ed272a8d92 100644 (file)
@@ -537,7 +537,7 @@ static void il4965_pass_packet_to_mac80211(struct il_priv *il,
 
        /* We only process data packets if the interface is open */
        if (unlikely(!il->is_open)) {
-               IL_DEBUG_DROP_LIMIT(il,
+               IL_DEBUG_DROP(il,
                    "Dropping packet while interface is not open.\n");
                return;
        }
@@ -647,7 +647,7 @@ void il4965_rx_reply_rx(struct il_priv *il,
        rx_status.signal = il4965_calc_rssi(il, phy_res);
 
        il_dbg_log_rx_data_frame(il, len, header);
-       IL_DEBUG_STATS_LIMIT(il, "Rssi %d, TSF %llu\n",
+       IL_DEBUG_STATS(il, "Rssi %d, TSF %llu\n",
                rx_status.signal, (unsigned long long)rx_status.mactime);
 
        /*
index 60ff0cdff9c0775999d45c6f23117aa0fcaca99a..782ec77715f5e34ad49e13dc66edb62a18343fff 100644 (file)
@@ -817,7 +817,7 @@ il4965_rs_tx_status(void *il_r, struct ieee80211_supported_band *sband,
        struct il_station_priv *sta_priv = (void *)sta->drv_priv;
        struct il_rxon_context *ctx = sta_priv->common.ctx;
 
-       IL_DEBUG_RATE_LIMIT(il,
+       IL_DEBUG_RATE(il,
                "get frame ack response, update rate scale window\n");
 
        /* Treat uninitialized rate scaling data same as non-existing. */
@@ -2251,7 +2251,7 @@ il4965_rs_get_rate(void *il_r, struct ieee80211_sta *sta, void *il_sta,
        struct il_lq_sta *lq_sta = il_sta;
        int rate_idx;
 
-       IL_DEBUG_RATE_LIMIT(il, "rate scale calculate new rate for skb\n");
+       IL_DEBUG_RATE(il, "rate scale calculate new rate for skb\n");
 
        /* Get max rate if user set max rate */
        if (lq_sta) {
index d3c818354ca5cb7e2935fd48e290ee7ddb81ebed..01fa6c8d0304a60c1b741b4248b40d782bb8a094 100644 (file)
@@ -1737,7 +1737,7 @@ static u8 il4965_find_station(struct il_priv *il, const u8 *addr)
                        goto out;
                }
 
-       IL_DEBUG_ASSOC_LIMIT(il, "can not find STA %pM total %d\n",
+       IL_DEBUG_ASSOC(il, "can not find STA %pM total %d\n",
                              addr, il->num_stations);
 
  out:
index a825051d5f2d76c1a12ae9d3cde5c684790d5f0a..c6dcbf3a2ffcef130382052dc07ff37a1d27809c 100644 (file)
@@ -52,14 +52,6 @@ do {                                                                 \
                        __func__ , ## args);                            \
 } while (0)
 
-#define IL_DEBUG_LIMIT(__priv, level, fmt, args...)                    \
-do {                                                                   \
-       if ((il_get_debug_level(__priv) & (level)) && net_ratelimit())  \
-               dev_printk(KERN_ERR, &(__priv->hw->wiphy->dev),         \
-                       "%c %s " fmt, in_interrupt() ? 'I' : 'U',       \
-                        __func__ , ## args);                           \
-} while (0)
-
 #define il_print_hex_dump(il, level, p, len)                   \
 do {                                                                   \
        if (il_get_debug_level(il) & level)                             \
@@ -69,7 +61,6 @@ do {                                                                  \
 
 #else
 #define IL_DEBUG(__priv, level, fmt, args...)
-#define IL_DEBUG_LIMIT(__priv, level, fmt, args...)
 static inline void il_print_hex_dump(struct il_priv *il, int level,
                                      const void *p, u32 len)
 {}
@@ -169,25 +160,14 @@ static inline void il_dbgfs_unregister(struct il_priv *il)
 #define IL_DEBUG_FW(p, f, a...)        IL_DEBUG(p, IL_DL_FW, f, ## a)
 #define IL_DEBUG_RF_KILL(p, f, a...)   IL_DEBUG(p, IL_DL_RF_KILL, f, ## a)
 #define IL_DEBUG_DROP(p, f, a...)      IL_DEBUG(p, IL_DL_DROP, f, ## a)
-#define IL_DEBUG_DROP_LIMIT(p, f, a...)        \
-               IL_DEBUG_LIMIT(p, IL_DL_DROP, f, ## a)
 #define IL_DEBUG_AP(p, f, a...)        IL_DEBUG(p, IL_DL_AP, f, ## a)
 #define IL_DEBUG_TXPOWER(p, f, a...)   IL_DEBUG(p, IL_DL_TXPOWER, f, ## a)
 #define IL_DEBUG_RATE(p, f, a...)      IL_DEBUG(p, IL_DL_RATE, f, ## a)
-#define IL_DEBUG_RATE_LIMIT(p, f, a...)        \
-               IL_DEBUG_LIMIT(p, IL_DL_RATE, f, ## a)
 #define IL_DEBUG_NOTIF(p, f, a...)     IL_DEBUG(p, IL_DL_NOTIF, f, ## a)
-#define IL_DEBUG_ASSOC(p, f, a...)     \
-               IL_DEBUG(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a)
-#define IL_DEBUG_ASSOC_LIMIT(p, f, a...)       \
-               IL_DEBUG_LIMIT(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a)
+#define IL_DEBUG_ASSOC(p, f, a...)     IL_DEBUG(p, IL_DL_ASSOC, f, ## a)
 #define IL_DEBUG_HT(p, f, a...)        IL_DEBUG(p, IL_DL_HT, f, ## a)
 #define IL_DEBUG_STATS(p, f, a...)     IL_DEBUG(p, IL_DL_STATS, f, ## a)
-#define IL_DEBUG_STATS_LIMIT(p, f, a...)       \
-               IL_DEBUG_LIMIT(p, IL_DL_STATS, f, ## a)
 #define IL_DEBUG_TX_REPLY(p, f, a...)  IL_DEBUG(p, IL_DL_TX_REPLY, f, ## a)
-#define IL_DEBUG_TX_REPLY_LIMIT(p, f, a...) \
-               IL_DEBUG_LIMIT(p, IL_DL_TX_REPLY, f, ## a)
 #define IL_DEBUG_QOS(p, f, a...)       IL_DEBUG(p, IL_DL_QOS, f, ## a)
 #define IL_DEBUG_RADIO(p, f, a...)     IL_DEBUG(p, IL_DL_RADIO, f, ## a)
 #define IL_DEBUG_POWER(p, f, a...)     IL_DEBUG(p, IL_DL_POWER, f, ## a)