mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 21:24:53 +00:00
trivial: Fix a debug statement when no devices are detected
This commit is contained in:
parent
b1b59d83cb
commit
0a36f44bc7
@ -811,13 +811,17 @@ fu_main_store_delay_cb (gpointer user_data)
|
|||||||
guint i;
|
guint i;
|
||||||
FuMainPrivate *priv = (FuMainPrivate *) user_data;
|
FuMainPrivate *priv = (FuMainPrivate *) user_data;
|
||||||
|
|
||||||
g_debug ("devices now in store:");
|
|
||||||
apps = as_store_get_apps (priv->store);
|
apps = as_store_get_apps (priv->store);
|
||||||
for (i = 0; i < apps->len; i++) {
|
if (apps->len == 0) {
|
||||||
app = g_ptr_array_index (apps, i);
|
g_debug ("no devices in store");
|
||||||
g_debug ("%i\t%s\t%s", i + 1,
|
} else {
|
||||||
as_app_get_id (app),
|
g_debug ("devices now in store:");
|
||||||
as_app_get_name (app, NULL));
|
for (i = 0; i < apps->len; i++) {
|
||||||
|
app = g_ptr_array_index (apps, i);
|
||||||
|
g_debug ("%i\t%s\t%s", i + 1,
|
||||||
|
as_app_get_id (app),
|
||||||
|
as_app_get_name (app, NULL));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
priv->store_changed_id = 0;
|
priv->store_changed_id = 0;
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
|
Loading…
Reference in New Issue
Block a user