summaryrefslogtreecommitdiffstats
path: root/src/net/vlan.c
diff options
context:
space:
mode:
authorMichael Brown2010-11-26 00:50:41 +0100
committerMichael Brown2010-11-26 02:09:40 +0100
commitf1e1545372eb93e3c8d1e97e7a21e00b87d71c02 (patch)
tree6f37fde73ce527289619fb8e935fc2a1f5a0c6be /src/net/vlan.c
parent[vlan] Allow duplicate VLAN creation attempts (diff)
downloadipxe-f1e1545372eb93e3c8d1e97e7a21e00b87d71c02.tar.gz
ipxe-f1e1545372eb93e3c8d1e97e7a21e00b87d71c02.tar.xz
ipxe-f1e1545372eb93e3c8d1e97e7a21e00b87d71c02.zip
[vlan] Add non-error debug messages
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/vlan.c')
-rw-r--r--src/net/vlan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/vlan.c b/src/net/vlan.c
index 5ecc7e1c..f0479e0f 100644
--- a/src/net/vlan.c
+++ b/src/net/vlan.c
@@ -360,6 +360,9 @@ int vlan_create ( struct net_device *trunk, unsigned int tag,
/* Synchronise with trunk device */
vlan_sync ( netdev );
+ DBGC ( netdev, "VLAN %s created with tag %d and priority %d\n",
+ netdev->name, vlan->tag, vlan->priority );
+
return 0;
unregister_netdev ( netdev );
@@ -389,6 +392,8 @@ int vlan_destroy ( struct net_device *netdev ) {
return -ENOTTY;
}
+ DBGC ( netdev, "VLAN %s destroyed\n", netdev->name );
+
/* Remove VLAN device */
unregister_netdev ( netdev );
trunk = vlan->trunk;