diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-12 15:24:11 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-12 15:37:21 +0100 |
commit | ab47d620b459ce45774237ca1a38b5218426c897 (patch) | |
tree | e35a1ac33f93cf57d5c6ee3bc8e21bc373809316 /src/network/networkd-link.c | |
parent | 920e2957be7730596a80b1b64f133cbb080e4955 (diff) |
networkd: improve logging a bit
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 52b023cd9e..25d92c8aa4 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -453,6 +453,8 @@ static int link_acquire_conf(Link *link) { return r; } + log_debug_link(link, "acquiring DHCPv4 lease"); + r = sd_dhcp_client_start(link->dhcp); if (r < 0) return r; @@ -470,7 +472,7 @@ static int link_update_flags(Link *link, unsigned flags) { return 0; if (link->flags == flags) { - log_debug_link(link, "link status unchanged: %#x", flags); + log_debug_link(link, "link status unchanged: %#.8x", flags); return 0; } @@ -503,7 +505,7 @@ static int link_update_flags(Link *link, unsigned flags) { } log_debug_link(link, - "link status updated: %#x -> %#x", link->flags, flags); + "link status updated: %#.8x -> %#.8x", link->flags, flags); link->flags = flags; @@ -609,6 +611,7 @@ static int bridge_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) { link->network->bridge->name, BRIDGE(link->network->bridge), NULL); + link_bridge_joined(link); return 1; |