From 8db556372294a606e6537488e469dcf83b63b410 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 3 Jan 2020 13:49:31 +0100 Subject: [PATCH] libnm: fix logging message about device's state change signal The device instance might already be removed from the cache. At that point, _nm_object_get_client(self) returns %NULL. Use the correct NMClient instance. --- libnm/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 77b7da6b09..f2701cb7e5 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -158,7 +158,7 @@ _notify_event_state_changed (NMClient *client, gs_unref_object NMDevice *self = notify_event->user_data; NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self); - NML_NMCLIENT_LOG_T (_nm_object_get_client (self), + NML_NMCLIENT_LOG_T (client, "[%s] emit Device's StateChanged signal %u -> %u, reason: %u", _nm_object_get_path (self), (guint) priv->old_state,