History

net: Fix definition of netif_vdbg() when VERBOSE_DEBUG is defined

netif_vdbg() was originally defined as entirely equivalent to netdev_vdbg(), but I assume that it was intended to take the same parameters as netif_dbg() etc. (Currently it is only used by the sfc driver, in which I worked on that assumption.) In commit a4ed89c I changed the definition used when VERBOSE_DEBUG is not defined, but I failed to notice that the definition used when VERBOSE_DEBUG is defined was also not as I expected. Change that to match netif_dbg() as well.

Ben Hutchings committed 16 years ago

Commit bcfcc451 parent 33907121 file · +1 −1Browse files

Unified · Split

include/linux/netdevice.h+1−1
@@ -2332,7 +2332,7 @@ do { \ · 2331 unmodified lines
2332#endif2332#endif
2333 2333
2334#if defined(VERBOSE_DEBUG)2334#if defined(VERBOSE_DEBUG)
2335#define netif_vdbg netdev_dbg2335#define netif_vdbg netif_dbg
2336#else2336#else
2337#define netif_vdbg(priv, type, dev, format, args...) \2337#define netif_vdbg(priv, type, dev, format, args...) \
2338({ \2338({ \