linux: Log debug message when siblings array becomes empty

This commit is contained in:
Benjamin Berg 2022-05-17 10:19:41 +02:00
parent c2b7a53e71
commit fa781e29da

View file

@ -235,6 +235,10 @@ uevent_signal_handler_cb (UpEnumeratorUdev *self,
devices = g_hash_table_lookup (self->siblings, parent_id);
g_ptr_array_remove_fast (devices, obj);
if (devices->len == 0) {
g_debug ("No devices with parent %s left", parent_id);
g_hash_table_remove (self->siblings, parent_id);
}
}
}