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().
This commit is contained in:
Thomas Haller 2017-09-25 14:49:43 +02:00
parent b18896f770
commit 5819988ac7
2 changed files with 1 additions and 4 deletions

View file

@ -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;

View file

@ -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 */
"",