udev: tiny update for log messages

This commit is contained in:
Yu Watanabe 2019-11-26 14:01:25 +09:00 committed by Lennart Poettering
parent f5c3892266
commit 6eee88577d
2 changed files with 3 additions and 3 deletions

View file

@ -744,7 +744,7 @@ int ethtool_set_glinksettings(
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;
}

View file

@ -362,8 +362,8 @@ int link_config_apply(link_config_ctx *ctx, link_config *config,
}
}
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);