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
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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