[VLAN]: Clean up debugging and printks

- use pr_* functions and common prefix for non-device related messages

- remove VLAN_ printk levels

- kill lots of useless debugging statements

- remove a few unnecessary printks like for double VID registration (already
  returns -EEXIST) and kill of a number of unnecessary checks in
  vlan_proc_{add,rem}_dev() that are already performed by the caller

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy
2008-01-21 00:24:30 -08:00
committed by David S. Miller
parent a5250a3695
commit 40f98e1af4
4 changed files with 30 additions and 138 deletions

View File

@@ -3,31 +3,6 @@
#include <linux/if_vlan.h>
/* Uncomment this if you want debug traces to be shown. */
/* #define VLAN_DEBUG */
#define VLAN_ERR KERN_ERR
#define VLAN_INF KERN_INFO
#define VLAN_DBG KERN_ALERT /* change these... to debug, having a hard time
* changing the log level at run-time..for some reason.
*/
/*
These I use for memory debugging. I feared a leak at one time, but
I never found it..and the problem seems to have dissappeared. Still,
I'll bet they might prove useful again... --Ben
#define VLAN_MEM_DBG(x, y, z) printk(VLAN_DBG "%s: " x, __FUNCTION__, y, z);
#define VLAN_FMEM_DBG(x, y) printk(VLAN_DBG "%s: " x, __FUNCTION__, y);
*/
/* This way they don't do anything! */
#define VLAN_MEM_DBG(x, y, z)
#define VLAN_FMEM_DBG(x, y)
extern unsigned short vlan_name_type;
#define VLAN_GRP_HASH_SHIFT 5