diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-25 14:49:43 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-09-25 14:49:44 +0200 |
commit | 5819988ac73e302ef9dde499720e2a083cddfc86 (patch) | |
tree | ee3b352527f83f42350c03fd15a1fc1b161f3cb0 | |
parent | b18896f77048399e7a8b6ddd4fa0961e603836fa (diff) | |
download | NetworkManager-5819988ac73e302ef9dde499720e2a083cddfc86.tar.gz |
platform: cleanup logging for adding link
No need for duplicate log lines
<debug> [1506146476.8462] platform: link: adding tap tap0 owner 107 group -1
<debug> [1506146476.8462] platform-linux: link: add tap tap0 owner 107 group -1
Merge them.
Also, for consistency change the logging output for adding generic
interfaces in nm_platform_link_add().
-rw-r--r-- | src/platform/nm-linux-platform.c | 3 | ||||
-rw-r--r-- | src/platform/nm-platform.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 003df4e950..1edc2183bb 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -5493,9 +5493,6 @@ tun_add (NMPlatform *platform, const char *name, gboolean tap, struct ifreq ifr = { }; int fd; - _LOGD ("link: add %s '%s' owner %" G_GINT64_FORMAT " group %" G_GINT64_FORMAT, - tap ? "tap" : "tun", name, owner, group); - fd = open ("/dev/net/tun", O_RDWR | O_CLOEXEC); if (fd < 0) return FALSE; diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 73cf1c553c..686943a13f 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -856,7 +856,7 @@ nm_platform_link_add (NMPlatform *self, if (plerr != NM_PLATFORM_ERROR_SUCCESS) return plerr; - _LOGD ("link: add link '%s' of type '%s' (%d)" + _LOGD ("link: adding link '%s' of type '%s' (%d)" "%s%s" /* address */ "%s%s" /* veth peer */ "", |