dhcp: log client-id of DHCP instance

(cherry picked from commit 2af1dc1d28)
This commit is contained in:
Thomas Haller 2018-10-18 08:17:52 +02:00
parent 5dc8a14576
commit 16bde2d1ec

View file

@ -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