Commit 19f94745 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move debugging message around.

parent 19a897b9
......@@ -347,7 +347,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;
}
......@@ -365,6 +366,13 @@ network_up(struct network *net, int up)
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