net: Fix definition of netif_vdbg() when VERBOSE_DEBUG is defined
Subsystems (2)
PATCH 1/1 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.
---
Since there are no users of this macro in net-2.6, this should be safe to change. If you don't want to make this change in net-2.6 then please revert a4ed89c in net-2.6 and apply this in net-next-2.6 so that the two alternate definitions are consistent in each tree.
Ben.
include/linux/netdevice.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/netdevice.h +1 -1
@@ -2352,7 +2352,7 @@ do { \#endif #if defined(VERBOSE_DEBUG ) -#define netif_vdbg netdev_dbg +#define netif_vdbg netif_dbg#else #define netif_vdbg(priv, type, dev, format, args...) \ ({ \
Signature · 6 lines
1.6.2.5 -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
From: Ben Hutchings <[email protected]>
Date: Fri, 02 Jul 2010 18:08:44 +0100
Quoted 11 lines
netif_vdbg()was originally defined as entirely equivalent tonetdev_vdbg(), but I assume that it was intended to take the same parameters asnetif_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_DEBUGis not defined, but I failed to notice that the definition used whenVERBOSE_DEBUGis defined was also not as I expected. Change that to matchnetif_dbg()as well.Signed-off-by Ben Hutchings <[email protected]>
Applied to net-2.6, thanks.