mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-29 16:07:45 +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);
|
const gchar *subsystem = g_ptr_array_index (self->udev_subsystems, i);
|
||||||
GList *devices = g_udev_client_query_by_subsystem (self->gudev_client,
|
GList *devices = g_udev_client_query_by_subsystem (self->gudev_client,
|
||||||
subsystem);
|
subsystem);
|
||||||
if (g_list_length (devices) > 0)
|
if (g_getenv ("FWUPD_PROBE_VERBOSE") != NULL) {
|
||||||
g_debug ("%u devices with subsystem %s",
|
g_debug ("%u devices with subsystem %s",
|
||||||
g_list_length (devices), subsystem);
|
g_list_length (devices), subsystem);
|
||||||
|
}
|
||||||
for (GList *l = devices; l != NULL; l = l->next) {
|
for (GList *l = devices; l != NULL; l = l->next) {
|
||||||
GUdevDevice *udev_device = l->data;
|
GUdevDevice *udev_device = l->data;
|
||||||
fu_engine_udev_device_add (self, udev_device);
|
fu_engine_udev_device_add (self, udev_device);
|
||||||
|
Loading…
Reference in New Issue
Block a user