mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 05:50:08 +01:00
platform: print rx/tx counters in nm_platform_link_to_string()
This commit is contained in:
parent
02a448e49b
commit
3d9d91b2be
1 changed files with 5 additions and 1 deletions
|
|
@ -3115,6 +3115,8 @@ nm_platform_link_to_string (const NMPlatformLink *link, char *buf, gsize len)
|
|||
"%s%s" /* addr */
|
||||
"%s%s" /* inet6_token */
|
||||
"%s%s" /* driver */
|
||||
" rx:%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT
|
||||
" tx:%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT
|
||||
,
|
||||
link->ifindex,
|
||||
link->name,
|
||||
|
|
@ -3133,7 +3135,9 @@ nm_platform_link_to_string (const NMPlatformLink *link, char *buf, gsize len)
|
|||
link->inet6_token.id ? " inet6token " : "",
|
||||
link->inet6_token.id ? nm_utils_inet6_interface_identifier_to_token (link->inet6_token, str_inet6_token) : "",
|
||||
link->driver ? " driver " : "",
|
||||
link->driver ? link->driver : "");
|
||||
link->driver ? link->driver : "",
|
||||
link->rx_packets, link->rx_bytes,
|
||||
link->tx_packets, link->tx_bytes);
|
||||
g_string_free (str_flags, TRUE);
|
||||
return buf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue