trivial: Show when there are no subsystem devices

If we asked for a subsystem, it's nice to know there are not actually any of the
supported devices.
This commit is contained in:
Richard Hughes 2020-12-01 10:55:39 +00:00
parent 8bcc5f3e80
commit 8a9f1674a3

View File

@ -5586,9 +5586,10 @@ fu_engine_enumerate_udev (FuEngine *self)
const gchar *subsystem = g_ptr_array_index (self->udev_subsystems, i);
GList *devices = g_udev_client_query_by_subsystem (self->gudev_client,
subsystem);
if (g_list_length (devices) > 0)
if (g_getenv ("FWUPD_PROBE_VERBOSE") != NULL) {
g_debug ("%u devices with subsystem %s",
g_list_length (devices), subsystem);
}
for (GList *l = devices; l != NULL; l = l->next) {
GUdevDevice *udev_device = l->data;
fu_engine_udev_device_add (self, udev_device);