else
r = set_sset(*fd, &ifr, u);
if (r < 0)
- return log_warning_errno(r, "ethtool: Cannot set device settings for %s : %m", ifname);
+ return log_warning_errno(r, "ethtool: Cannot set device settings for %s: %m", ifname);
return r;
}
}
}
- if (config->duplex !=_DUP_INVALID)
- log_warning_errno(r, "Could not set duplex of %s to (%s): %m", old_name, duplex_to_string(config->duplex));
+ if (config->duplex != _DUP_INVALID)
+ log_warning_errno(r, "Could not set duplex of %s to %s: %m", old_name, duplex_to_string(config->duplex));
}
r = ethtool_set_wol(&ctx->ethtool_fd, old_name, config->wol);