summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-02-15 09:11:42 +0100
committerThomas Haller <thaller@redhat.com>2021-02-15 09:16:58 +0100
commit1f9622358a691aa97b72b3df118feac7970769c4 (patch)
tree5b5630a09a1168d320f789fc7c400fc2f7a1128c
parent6da5fc59d860913a278f488f0873ce68f038de2b (diff)
downloadNetworkManager-1f9622358a691aa97b72b3df118feac7970769c4.tar.gz
libnm: avoid assertion failure in _dbus_handle_properties_changed() for logging no properties
-rw-r--r--libnm/nm-client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libnm/nm-client.c b/libnm/nm-client.c
index 2c7751965a..ec79b40ef3 100644
--- a/libnm/nm-client.c
+++ b/libnm/nm-client.c
@@ -2930,11 +2930,15 @@ _dbus_handle_properties_changed(NMClient * self,
gs_free char *ss = NULL;
NML_NMCLIENT_LOG_T(self,
- "[%s]: %s: properties changed for interface %s { %s }",
+ "[%s]: %s: properties changed for interface %s %s%s%s",
object_path,
log_context,
interface_name,
- (ss = g_variant_print(changed_properties, TRUE)));
+ NM_PRINT_FMT_QUOTED(changed_properties,
+ "{ ",
+ (ss = g_variant_print(changed_properties, TRUE)),
+ " }",
+ "(no changed properties)"));
}
if (inout_dbobj) {