diff options
author | Thomas Haller <thaller@redhat.com> | 2018-10-18 08:17:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-10-18 09:13:27 +0200 |
commit | 2af1dc1d287334dcd02d8282fcfdbe3a8e031363 (patch) | |
tree | ce6174de7330105f75afa4129dd8bac913deb7c2 | |
parent | 1b732e28f7aafbbfb98748f6a873c98be361ef67 (diff) | |
download | NetworkManager-2af1dc1d287334dcd02d8282fcfdbe3a8e031363.tar.gz |
dhcp: log client-id of DHCP instance
-rw-r--r-- | src/dhcp/nm-dhcp-client.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c index d60a9bdaba..21b87c17cc 100644 --- a/src/dhcp/nm-dhcp-client.c +++ b/src/dhcp/nm-dhcp-client.c @@ -230,6 +230,15 @@ _set_client_id (NMDhcpClient *self, GBytes *client_id, gboolean take) priv->client_id = client_id; if (!take && client_id) g_bytes_ref (client_id); + + { + gs_free char *s = NULL; + + _LOGT ("client-id: %s", + priv->client_id + ? (s = nm_dhcp_utils_duid_to_string (priv->client_id)) + : "default"); + } } void |