From 9ce0995efbf529356175f4a64c6d4ad624b61dfc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 15 Feb 2016 16:23:38 +0100 Subject: [PATCH] platform: change format to print link-type in nm_platform_link_to_string() --- src/platform/nm-platform.c | 5 ++--- 1 file 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,