libnm: avoid assertion failure in _dbus_handle_properties_changed() for logging no properties

(cherry picked from commit 1f9622358a)
This commit is contained in:
Thomas Haller
2021-02-15 09:11:42 +01:00
parent 98b55a63c5
commit 9e743475b6

View File

@@ -2930,11 +2930,15 @@ _dbus_handle_properties_changed(NMClient * self,
gs_free char *ss = NULL; gs_free char *ss = NULL;
NML_NMCLIENT_LOG_T(self, 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, object_path,
log_context, log_context,
interface_name, 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) { if (inout_dbobj) {