summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-09 17:50:18 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-09 17:50:18 +0200
commit943b0701d47a06fa80800e85a16914e8f2563ec8 (patch)
tree2076fed6b4f09babf30114ea845da6c785f431dd
parentac95c5179ee5f50d97b4262a4fd0fe41db395d54 (diff)
downloadnetifd-943b0701d47a06fa80800e85a16914e8f2563ec8.tar.gz
add more debugging messages for hotplug handlers
-rw-r--r--interface-hotplug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-hotplug.c b/interface-hotplug.c
index fff488a..ba7405a 100644
--- a/interface-hotplug.c
+++ b/interface-hotplug.c
@@ -52,12 +52,16 @@ call_hotplug(void)
current = list_first_entry(&pending, struct interface, hotplug_list);
current_ev = current->hotplug_ev;
list_del_init(&current->hotplug_list);
+
+ D(SYSTEM, "Call hotplug handler for interface '%s'\n", current->name);
run_cmd(current->name, current_ev == IFEV_UP);
}
static void
task_complete(struct uloop_process *proc, int ret)
{
+ if (current)
+ D(SYSTEM, "Complete hotplug handler for interface '%s'\n", current->name);
current = NULL;
call_hotplug();
}