[PATCH 2/3] tracker: complete some traces regarding operations id



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/tracker/grl-tracker.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 1610e89..0530465 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -829,7 +829,7 @@ grl_tracker_source_query (GrlMediaSource *source,
   GError               *error = NULL;
   struct OperationSpec *os;
 
-  GRL_DEBUG ("%s", __FUNCTION__);
+  GRL_DEBUG ("%s: id=%u", __FUNCTION__, qs->query_id);
 
   if (!qs->query || qs->query[0] == '\0') {
     error = g_error_new_literal (GRL_CORE_ERROR,
@@ -867,7 +867,7 @@ grl_tracker_source_metadata (GrlMediaSource *source,
   GrlTrackerSourcePriv *priv = GRL_TRACKER_SOURCE_GET_PRIVATE (source);
   gchar                *sparql_select, *sparql_final;
 
-  GRL_DEBUG ("%s", __FUNCTION__);
+  GRL_DEBUG ("%s: id=%u", __FUNCTION__, ms->metadata_id);
 
   sparql_select = get_select_string (source, ms->keys);
   sparql_final = g_strdup_printf (TRACKER_METADATA_REQUEST, sparql_select,
@@ -896,7 +896,7 @@ grl_tracker_source_search (GrlMediaSource *source, GrlMediaSourceSearchSpec *ss)
   GError               *error = NULL;
   struct OperationSpec *os;
 
-  GRL_DEBUG ("%s", __FUNCTION__);
+  GRL_DEBUG ("%s: id=%u", __FUNCTION__, ss->search_id);
 
   if (!ss->text || ss->text[0] == '\0') {
     error = g_error_new_literal (GRL_CORE_ERROR,
@@ -946,7 +946,7 @@ grl_tracker_source_browse (GrlMediaSource *source,
   struct OperationSpec *os;
   GrlMedia             *media;
 
-  GRL_DEBUG ("%s", __FUNCTION__);
+  GRL_DEBUG ("%s: id=%u", __FUNCTION__, bs->browse_id);
 
   if ((bs->container == NULL || grl_media_get_id (bs->container) == NULL)) {
     /* Hardcoded categories */
@@ -998,7 +998,7 @@ grl_tracker_source_cancel (GrlMediaSource *source, guint operation_id)
   GrlTrackerSourcePriv *priv = GRL_TRACKER_SOURCE_GET_PRIVATE (source);
   struct OperationSpec *os;
 
-  GRL_DEBUG ("%s", __FUNCTION__);
+  GRL_DEBUG ("%s: id=%u", __FUNCTION__, operation_id);
 
   os = g_hash_table_lookup (priv->operations, GSIZE_TO_POINTER (operation_id));
 
-- 
1.7.2.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]