From 08fd6e9179b13fec38e082b5434e9cba43e0fe7d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 11 Feb 2020 10:54:26 +0000 Subject: [PATCH] trivial: Include the device subsubsystem in the physical ID error message We check for this, so it makes sense to show it in the list of possibilities. --- libfwupdplugin/fu-udev-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libfwupdplugin/fu-udev-device.c b/libfwupdplugin/fu-udev-device.c index 0b12a7785..fd4a9551a 100644 --- a/libfwupdplugin/fu-udev-device.c +++ b/libfwupdplugin/fu-udev-device.c @@ -559,7 +559,9 @@ fu_udev_device_get_parent_subsystems (FuUdevDevice *self) GString *str = g_string_new (NULL); g_autoptr(GUdevDevice) udev_device = g_object_ref (priv->udev_device); - /* find subsystems of all parent devices */ + /* find subsystems of self and all parent devices */ + if (priv->subsystem != NULL) + g_string_append_printf (str, "%s,", priv->subsystem); while (TRUE) { g_autoptr(GUdevDevice) parent = g_udev_device_get_parent (udev_device); if (parent == NULL)