r8169: fix printk_ratelimit in the interrupt handler
authorFrancois Romieu <romieu@electric-eye.fr.zoreil.com>
Wed, 16 Nov 2005 22:44:05 +0000 (23:44 +0100)
committerFrancois Romieu <romieu@electric-eye.fr.zoreil.com>
Wed, 16 Nov 2005 22:44:05 +0000 (23:44 +0100)
commit7c8b2eb4c71d5c3d45dbfe0c81fefe81e264e9b3
tree0e2d79d349bf0a2f73d90e3330894f7a8cf27327
parent0db169f9703115bab09eda5d89a8f6937a7bf98e
r8169: fix printk_ratelimit in the interrupt handler

I keep on getting "printk: N messages suppressed" messages.  We need to test
netif_msg_intr() _before_ running printk_ratelimit(), because the latter
updates state.

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/r8169.c