summaryrefslogtreecommitdiff
path: root/src/nm-ip6-config.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-09-21 18:30:49 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-09-26 11:49:37 +0200
commit3b49d1075daa084edd7541a0915a97b3afd643e9 (patch)
treedc9474b67d8ff942ddb3ae9a48c9d1020554812c /src/nm-ip6-config.c
parentd7017005e1ffe169ee110bfccfb01fa2345ceb13 (diff)
downloadNetworkManager-3b49d1075daa084edd7541a0915a97b3afd643e9.tar.gz
core: improve nm_ip_config_dump()
Previously we had nm_ip{4,6}_config_dump() for debugging purposes, but they were inconveniently printing to stdout and so the output was not ordered in the journal. Implement a unified nm_ip_config_dump() that logs through the usual logging mechanism.
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r--src/nm-ip6-config.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c
index 378b76d6ba..382512945e 100644
--- a/src/nm-ip6-config.c
+++ b/src/nm-ip6-config.c
@@ -1483,53 +1483,6 @@ nm_ip6_config_replace (NMIP6Config *dst, const NMIP6Config *src, gboolean *relev
return has_relevant_changes || has_minor_changes;
}
-void
-nm_ip6_config_dump (const NMIP6Config *self, const char *detail)
-{
- const struct in6_addr *tmp;
- guint32 i;
- const char *str;
- NMDedupMultiIter ipconf_iter;
- const NMPlatformIP6Address *address;
- const NMPlatformIP6Route *route;
-
- g_return_if_fail (self != NULL);
-
- g_message ("--------- NMIP6Config %p (%s)", self, detail);
-
- str = nm_dbus_object_get_path (NM_DBUS_OBJECT (self));
- if (str)
- g_message (" path: %s", str);
-
- /* addresses */
- nm_ip_config_iter_ip6_address_for_each (&ipconf_iter, self, &address)
- g_message (" a: %s", nm_platform_ip6_address_to_string (address, NULL, 0));
-
- /* nameservers */
- for (i = 0; i < nm_ip6_config_get_num_nameservers (self); i++) {
- tmp = nm_ip6_config_get_nameserver (self, i);
- g_message (" ns: %s", nm_utils_inet6_ntop (tmp, NULL));
- }
-
- /* routes */
- nm_ip_config_iter_ip6_route_for_each (&ipconf_iter, self, &route)
- g_message (" rt: %s", nm_platform_ip6_route_to_string (route, NULL, 0));
-
- /* domains */
- for (i = 0; i < nm_ip6_config_get_num_domains (self); i++)
- g_message (" domain: %s", nm_ip6_config_get_domain (self, i));
-
- /* dns searches */
- for (i = 0; i < nm_ip6_config_get_num_searches (self); i++)
- g_message (" search: %s", nm_ip6_config_get_search (self, i));
-
- /* dns options */
- for (i = 0; i < nm_ip6_config_get_num_dns_options (self); i++)
- g_message (" dnsopt: %s", nm_ip6_config_get_dns_option (self, i));
-
- g_message (" dnspri: %d", nm_ip6_config_get_dns_priority (self));
-}
-
/*****************************************************************************/
void