Commit 735092ee authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move debugging message around.

parent 3a9b62d2
......@@ -359,7 +359,6 @@ main(int argc, char **argv)
}
for(i = optind; i < argc; i++) {
debugf("Adding network %s.\n", argv[i]);
vrc = add_network(argv[i], NULL);
if(vrc == NULL)
goto fail;
......
......@@ -85,6 +85,7 @@ add_network(char *ifname, struct network_conf *conf)
networks = net;
else
last_network()->next = net;
return net;
}
......@@ -391,6 +392,13 @@ network_up(struct network *net, int up)
check_network_channel(net);
update_network_metric(net);
rc = check_network_ipv4(net);
debugf("Upped network %s (%s, cost=%d%s).\n",
net->ifname,
(net->flags & NET_WIRED) ? "wired" : "wireless",
net->cost,
net->ipv4 ? ", IPv4" : "");
if(up && rc > 0)
send_update(net, 0, NULL, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment