platform: change format to print link-type in nm_platform_link_to_string()

This commit is contained in:
Thomas Haller 2016-02-15 16:23:38 +01:00
parent 3d734b30a2
commit 9ce0995efb

View file

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