]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: tiny update for log messages
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Nov 2019 05:01:25 +0000 (14:01 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Nov 2019 09:42:54 +0000 (10:42 +0100)
src/shared/ethtool-util.c
src/udev/net/link-config.c

index 8fec1a83f072a376e9e586b9a1e0b0a1e50a599a..3119b2b92e3b86dc629fb1119dee5e8725ac57ec 100644 (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;
 }
index 129a5a27b1da7bf8920c8400f1910c8a95dd2abe..7b07e2f38fa819ddefbf90cabaa804c1be276d5a 100644 (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);