lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 15 Oct 2013 19:45:14 +0800 From: Kefeng Wang <wangkefeng.wang@...wei.com> To: <linux-kernel@...r.kernel.org> CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, "David S. Miller" <davem@...emloft.net>, Pablo Neira Ayuso <pablo@...filter.org>, "Stephen Hemminger" <stephen@...workplumber.org>, Johannes Berg <johannes@...solutions.net>, "John W. Linville" <linville@...driver.com>, Stanislaw Gruszka <sgruszka@...hat.com>, Johannes Berg <johannes.berg@...el.com>, Francois Romieu <romieu@...zoreil.com>, "Ben Hutchings" <bhutchings@...arflare.com>, Chas Williams <chas@....nrl.navy.mil>, Marc Kleine-Budde <mkl@...gutronix.de>, Samuel Ortiz <samuel@...tiz.org>, Paul Mackerras <paulus@...ba.org>, Oliver Neukum <oneukum@...e.de>, Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>, "Boris Ostrovsky" <boris.ostrovsky@...cle.com>, David Vrabel <david.vrabel@...rix.com>, Rusty Russell <rusty@...tcorp.com.au>, "Michael S. Tsirkin" <mst@...hat.com>, <netfilter@...r.kernel.org>, <netdev@...r.kernel.org>, <linux-wireless@...r.kernel.org>, <guohanjun@...wei.com> Subject: [PATCH 18/18] net: wimax: use wrapper functions of net_ratelimit() to simplify code net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang <wangkefeng.wang@...wei.com> --- drivers/net/wimax/i2400m/netdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index 4889613..678717a 100644 --- a/drivers/net/wimax/i2400m/netdev.c +++ b/drivers/net/wimax/i2400m/netdev.c @@ -305,8 +305,7 @@ int i2400m_net_wake_tx(struct i2400m *i2400m, struct net_device *net_dev, * queue -- blame the queue disciplines that * queue without looking -- I guess there is a reason * for that. */ - if (net_ratelimit()) - d_printf(1, dev, "NETTX: device exiting idle, " + net_ratelimited_function(d_printf, 1, dev, "NETTX: device exiting idle, " "dropping skb %p, queue running %d\n", skb, netif_queue_stopped(net_dev)); result = -EBUSY; -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists