[gnome-software] trivial: Fix the warning message when using the random sort function
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix the warning message when using the random sort function
- Date: Mon, 22 May 2017 11:19:40 +0000 (UTC)
commit b2403861e52a29d23fcecfb986e5dff6c8edcc3b
Author: Richard Hughes <richard hughsie com>
Date: Mon May 22 11:45:50 2017 +0100
trivial: Fix the warning message when using the random sort function
lib/gs-plugin-loader.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 2fa8471..089f47b 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -956,7 +956,8 @@ gs_plugin_loader_job_sorted_truncation (GsPluginLoaderHelper *helper)
max_results, gs_app_list_length (list));
sort_func = gs_plugin_job_get_sort_func (helper->plugin_job);
if (sort_func == NULL) {
- g_warning ("no ->sort_func() set, using random!");
+ g_warning ("no ->sort_func() set for %s, using random!",
+ gs_plugin_action_to_string (gs_plugin_job_get_action (helper->plugin_job)));
gs_app_list_randomize (list);
} else {
gpointer sort_func_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]