[PATCH 2/7] tracker: update on debug traces



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 |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 09ce885..2887713 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -134,7 +134,7 @@ grl_tracker_plugin_init (GrlPluginRegistry *registry,
 {
   GRL_LOG_DOMAIN_INIT (tracker_log_domain, "tracker");
 
-  GRL_DEBUG ("tracker_plugin_init");
+  GRL_DEBUG ("%s", __FUNCTION__);
 
   tracker_sparql_connection_get_async (NULL,
                                        (GAsyncReadyCallback) tracker_get_connection_cb,
@@ -151,7 +151,7 @@ GRL_PLUGIN_REGISTER (grl_tracker_plugin_init,
 static GrlTrackerSource *
 grl_tracker_source_new (TrackerSparqlConnection *connection)
 {
-  GRL_DEBUG ("grl_tracker_source_new");
+  GRL_DEBUG ("%s", __FUNCTION__);
 
   return g_object_new (GRL_TRACKER_SOURCE_TYPE,
                        "source-id", SOURCE_ID,
@@ -456,7 +456,7 @@ grl_tracker_source_query (GrlMediaSource *source,
 {
   GError *error = NULL;
 
-  GRL_DEBUG ("grl_tracker_source_query");
+  GRL_DEBUG ("%s", __FUNCTION__);
 
   if (!qs->query || qs->query[0] == '\0') {
     error = g_error_new_literal (GRL_CORE_ERROR,
@@ -465,6 +465,8 @@ grl_tracker_source_query (GrlMediaSource *source,
     goto send_error;
   }
 
+  GRL_DEBUG ("select : %s", qs->query);
+
   do_tracker_query (source,
                     qs->query,
                     qs->callback,
-- 
1.7.2.3



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