From 3dbfc21171dc44b444c76df9b047d85dbd01475e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 1 Dec 2020 12:06:50 +0000 Subject: [PATCH] trivial: Include the possible plugins in the FuDevice->to_string output --- libfwupdplugin/fu-device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfwupdplugin/fu-device.c b/libfwupdplugin/fu-device.c index 71f00bc59..30eca15de 100644 --- a/libfwupdplugin/fu-device.c +++ b/libfwupdplugin/fu-device.c @@ -2315,6 +2315,10 @@ fu_device_add_string (FuDevice *self, guint idt, GString *str) fu_common_string_append_kv (str, idt + 1, key, value); } } + for (guint i = 0; i < priv->possible_plugins->len; i++) { + const gchar *name = g_ptr_array_index (priv->possible_plugins, i); + fu_common_string_append_kv (str, idt + 1, "PossiblePlugin", name); + } /* subclassed */ if (klass->to_string != NULL)