1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-29 06:50:16 +03:00

Merge pull request #297 from ssahani/net

networkd: vlan improve logging
This commit is contained in:
Ronny Chevalier 2015-06-19 10:24:13 +02:00
commit cf4d75ccf9

View File

@ -34,12 +34,8 @@ static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlin
if (v->id <= VLANID_MAX) {
r = sd_netlink_message_append_u16(req, IFLA_VLAN_ID, v->id);
if (r < 0) {
log_netdev_error(netdev,
"Could not append IFLA_VLAN_ID attribute: %s",
strerror(-r));
return r;
}
if (r < 0)
return log_netdev_error_errno(netdev, r, "Could not append IFLA_VLAN_ID attribute: %m");
}
return 0;