• Jarod Wilson's avatar
    bonding: improve event debug usability · 75466dce
    Jarod Wilson authored
    Seeing bonding debug log data along the lines of "event: 5" is a bit spartan,
    and often requires a lookup table if you don't remember what every event is.
    Make use of netdev_cmd_to_name for an improved debugging experience, so for
    the prior example, you'll see: "bond_netdev_event received NETDEV_REGISTER"
    instead (both are prefixed with the device for which the event pertains).
    
    CC: Jay Vosburgh <j.vosburgh@gmail.com>
    CC: Veaceslav Falico <vfalico@gmail.com>
    CC: Andy Gospodarek <andy@greyhouse.net>
    CC: netdev@vger.kernel.org
    Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    75466dce
bond_main.c 137 KB