}
static int link_enter_routes_set(Link *link) {
- log_info("Routes set for link %u", (unsigned)link->ifindex);
+ log_info("Routes set for link %ju", link->ifindex);
if (link_is_up(link))
return link_enter_configured(link);
r = sd_rtnl_message_get_errno(m);
if (r < 0 && r != -EEXIST) {
- log_warning("Could not set route on interface %u: %s",
- (unsigned)link->ifindex, strerror(-r));
+ log_warning("Could not set route on interface %ju: %s",
+ link->ifindex, strerror(-r));
return link_enter_failed(link);
}
}
static int link_enter_addresses_set(Link *link) {
- log_info("Addresses set for link %u", (unsigned)link->ifindex);
+ log_info("Addresses set for link %ju", link->ifindex);
link->state = LINK_STATE_ADDRESSES_SET;
r = sd_rtnl_message_get_errno(m);
if (r < 0 && r != -EEXIST) {
- log_warning("Could not set address on interface %u: %s",
- (unsigned)link->ifindex, strerror(-r));
+ log_warning("Could not set address on interface %ju: %s",
+ link->ifindex, strerror(-r));
link_enter_failed(link);
}
r = sd_rtnl_message_get_errno(m);
if (r < 0) {
- log_warning("Could not bring up interface %u: %s",
- (unsigned)link->ifindex, strerror(-r));
+ log_warning("Could not bring up interface %ju: %s",
+ link->ifindex, strerror(-r));
return link_enter_failed(link);
}
int network_apply(Manager *manager, Network *network, Link *link) {
int r;
- log_info("Network '%s' being applied to link '%u'",
- network->description, (unsigned) link->ifindex);
+ log_info("Network '%s' being applied to link '%ju'",
+ network->description, link->ifindex);
link->network = network;