lkml.org 
[lkml]   [2011]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 08/11] dynamic_debug: make netif_dbg() call __netdev_printk()
    From: Jason Baron <jbaron@redhat.com>

    Previously, netif_dbg() was using dynamic_dev_dbg() to perform
    the underlying printk. Fix it to use __netdev_printk(), instead.

    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: Jason Baron <jbaron@redhat.com>
    ---
    include/linux/netdevice.h | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
    index 9b132ef..cb73e77 100644
    --- a/include/linux/netdevice.h
    +++ b/include/linux/netdevice.h
    @@ -2732,9 +2732,7 @@ do { \
    #define netif_dbg(priv, type, netdev, format, args...) \
    do { \
    if (netif_msg_##type(priv)) \
    - dynamic_dev_dbg((netdev)->dev.parent, \
    - "%s: " format, \
    - netdev_name(netdev), ##args); \
    + dynamic_netdev_dbg(netdev, format, ##args); \
    } while (0)
    #else
    #define netif_dbg(priv, type, dev, format, args...) \
    --
    1.7.5.4


    \
     
     \ /
      Last update: 2011-07-14 18:13    [W:0.019 / U:152.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site