mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 09:25:38 +00:00
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:
parent
8bcc5f3e80
commit
8a9f1674a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user