usbnet: allow type check of devdbg arguments in non-debug build

Improve usbnet's devdbg to always type-check diagnostic arguments,
like dev_dbg (device.h).  This makes no change to the resulting size of
usbnet modules.

This patch also removes an #ifdef DEBUG directive from rndis_wlan so
it's devdbg statements are always type-checked at compile time.

Signed-off-by: Steve Glendinning <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Steve Glendinning 2009-01-21 12:35:43 -08:00 • committed by David S. Miller
commit 0b491eee46
2 changed files with 3 additions and 3 deletions

View file

@ -1649,9 +1649,7 @@ static char *rndis_translate_scan(struct net_device *dev,
char *end_buf,
struct ndis_80211_bssid_ex *bssid)
{
#ifdef DEBUG
struct usbnet *usbdev = netdev_priv(dev);
#endif
u8 *ie;
char *current_val;
int bssid_len, ie_len, i;