diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-15 16:23:38 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-15 16:23:38 +0100 |
commit | 9ce0995efbf529356175f4a64c6d4ad624b61dfc (patch) | |
tree | a17f6a042699411b56cf654cba8c04d42c1cd7f0 | |
parent | 3d734b30a24b91ef88b8eb97850acee0a5d3707f (diff) | |
download | NetworkManager-9ce0995efbf529356175f4a64c6d4ad624b61dfc.tar.gz |
platform: change format to print link-type in nm_platform_link_to_string()
-rw-r--r-- | src/platform/nm-platform.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 123086e93b..85e22989f9 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -3023,7 +3023,7 @@ nm_platform_link_to_string (const NMPlatformLink *link, char *buf, gsize len) " mtu %d" "%s" /* master */ " arp %u" /* arptype */ - "%s%s" /* link->type */ + " %s" /* link->type */ "%s%s" /* kind */ "%s" /* is-in-udev */ "%s" /* addr-gen-mode */ @@ -3037,9 +3037,8 @@ nm_platform_link_to_string (const NMPlatformLink *link, char *buf, gsize len) str_flags->str, link->mtu, master, link->arptype, - str_link_type ? " " : "", str_if_set (str_link_type, "???"), - link->kind ? (g_strcmp0 (str_link_type, link->kind) ? "/" : "*") : "", + link->kind ? (g_strcmp0 (str_link_type, link->kind) ? "/" : "*") : "?", link->kind && g_strcmp0 (str_link_type, link->kind) ? link->kind : "", link->initialized ? " init" : " not-init", str_addrmode, |