diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 16:03:16 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 16:03:16 +0200 |
commit | 314b33c511f8aa53c9fb97c6a9ad9d410f06af26 (patch) | |
tree | c9fdfb3fa7a5fcf98a58ef96ba3cdc89b9c01635 /interface.c | |
parent | 64c271ed3bd50ce5ffbf69108d75bb79d279e8d9 (diff) |
add better debug messages for interface create/remove/update
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/interface.c b/interface.c index 59b7ea2..73da2ab 100644 --- a/interface.c +++ b/interface.c @@ -420,11 +420,14 @@ interface_update(struct vlist_tree *tree, struct vlist_node *node_new, struct interface *if_old = container_of(node_old, struct interface, node); struct interface *if_new = container_of(node_new, struct interface, node); - if (node_old && node_new) + if (node_old && node_new) { + D(INTERFACE, "Update interface '%s'\n", if_new->name); interface_change_config(if_old, if_new); - else if (node_old) + } else if (node_old) { + D(INTERFACE, "Remove interface '%s'\n", if_old->name); set_config_state(if_old, IFC_REMOVE); - else if (node_new) { + } else if (node_new) { + D(INTERFACE, "Create interface '%s'\n", if_new->name); interface_claim_device(if_new); proto_init_interface(if_new, if_new->config); interface_ip_init(if_new); |