projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac95c51
)
add more debugging messages for hotplug handlers
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 15:50:18 +0000
(17:50 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 9 Oct 2011 15:50:18 +0000
(17:50 +0200)
interface-hotplug.c
patch
|
blob
|
history
diff --git
a/interface-hotplug.c
b/interface-hotplug.c
index
fff488a
..
ba7405a
100644
(file)
--- 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(¤t->hotplug_list);
current = list_first_entry(&pending, struct interface, hotplug_list);
current_ev = current->hotplug_ev;
list_del_init(¤t->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)
{
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();
}
current = NULL;
call_hotplug();
}