summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-03 13:49:31 +0100
committerThomas Haller <thaller@redhat.com>2020-01-28 10:54:14 +0100
commit8db556372294a606e6537488e469dcf83b63b410 (patch)
treeda58a607516220868d846e1bc5efb1804eef2732
parent2c4f57be193e936af07aa043b250971292d64ae5 (diff)
downloadNetworkManager-8db556372294a606e6537488e469dcf83b63b410.tar.gz
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.
-rw-r--r--libnm/nm-device.c2
1 files changed, 1 insertions, 1 deletions
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,