From 16bde2d1eca80ddaade01e35b0c6fc34bc937fe2 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 18 Oct 2018 08:17:52 +0200 Subject: [PATCH] dhcp: log client-id of DHCP instance (cherry picked from commit 2af1dc1d287334dcd02d8282fcfdbe3a8e031363) --- src/dhcp/nm-dhcp-client.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c index 16db830681..143d261848 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