summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-08-16 13:47:05 +0200
committerThomas Haller <thaller@redhat.com>2016-08-17 13:14:08 +0200
commit9dd7d4649f3d7e73ca86da10227de5cfd50bc9a0 (patch)
tree8ae36e5f2e734771c247cf9d22f7e21e8ed63bcd
parent11304c8723a55101a7402f967afc0f92e4e85083 (diff)
downloadNetworkManager-9dd7d4649f3d7e73ca86da10227de5cfd50bc9a0.tar.gz
platform: print rx/tx counters in nm_platform_link_to_string()
-rw-r--r--src/platform/nm-platform.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 1a7f8a0f6b..9dace69984 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -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;
}