if (*fd < 0) {
r = ethtool_connect(fd);
if (r < 0) {
- log_warning("link_config: could not connect to ethtool: %s", strerror(-r));
+ log_warning_errno(-r, "link_config: could not connect to ethtool: %m");
return r;
}
}
if (*fd < 0) {
r = ethtool_connect(fd);
if (r < 0) {
- log_warning("link_config: could not connect to ethtool: %s", strerror(-r));
+ log_warning_errno(-r, "link_config: could not connect to ethtool: %m");
return r;
}
}
if (*fd < 0) {
r = ethtool_connect(fd);
if (r < 0) {
- log_warning("link_config: could not connect to ethtool: %s", strerror(-r));
+ log_warning_errno(-r, "link_config: could not connect to ethtool: %m");
return r;
}
}