diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-09-21 18:30:49 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-09-26 11:49:37 +0200 |
commit | 3b49d1075daa084edd7541a0915a97b3afd643e9 (patch) | |
tree | dc9474b67d8ff942ddb3ae9a48c9d1020554812c /src/nm-ip4-config.h | |
parent | d7017005e1ffe169ee110bfccfb01fa2345ceb13 (diff) | |
download | NetworkManager-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-ip4-config.h')
-rw-r--r-- | src/nm-ip4-config.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nm-ip4-config.h b/src/nm-ip4-config.h index d9ac969cb2..4983ca7add 100644 --- a/src/nm-ip4-config.h +++ b/src/nm-ip4-config.h @@ -194,7 +194,6 @@ NMIP4Config *nm_ip4_config_intersect_alloc (const NMIP4Config *a, const NMIP4Config *b, guint32 default_route_metric_penalty); gboolean nm_ip4_config_replace (NMIP4Config *dst, const NMIP4Config *src, gboolean *relevant_changes); -void nm_ip4_config_dump (const NMIP4Config *self, const char *detail); const NMPObject *nm_ip4_config_best_default_route_get (const NMIP4Config *self); const NMPObject *_nm_ip4_config_best_default_route_find (const NMIP4Config *self); @@ -297,6 +296,11 @@ gboolean nm_ip4_config_equal (const NMIP4Config *a, const NMIP4Config *b); gboolean _nm_ip_config_check_and_add_domain (GPtrArray *array, const char *domain); +void nm_ip_config_dump (const NMIPConfig *self, + const char *detail, + NMLogLevel level, + NMLogDomain domain); + /*****************************************************************************/ #include "nm-ip6-config.h" |