[tracker/sam/functional-test-fixes: 7/30] temp: log all source Ids



commit e6bcee5cc77e7119a87c2af2b2fb449121e3b3f6
Author: Sam Thursfield <sam afuera me uk>
Date:   Sun Jul 20 16:59:27 2014 +0100

    temp: log all source Ids
    
    I get a lots of source removal warnings. Running 300-miner-basic-ops
    functional test with -v shows many. By logging the ids of sources as
    they are created I can hopefully track these errors down better.

 examples/libtracker-miner/tracker-main.c           |    2 +-
 src/libtracker-common/tracker-storage.c            |    2 +-
 src/libtracker-miner/tracker-crawler.c             |    2 +-
 src/libtracker-miner/tracker-media-art.c           |    2 +-
 src/libtracker-miner/tracker-miner-fs.c            |    2 +-
 src/libtracker-miner/tracker-monitor.c             |    2 +-
 src/libtracker-miner/tracker-sparql-buffer.c       |    2 +-
 src/miners/fs/tracker-main.c                       |    2 +-
 src/miners/fs/tracker-miner-files.c                |    2 +-
 src/miners/fs/tracker-writeback-dispatcher.c       |    2 +-
 src/miners/rss/tracker-miner-rss.c                 |    2 +-
 src/plugins/evolution/tracker-evolution-plugin.c   |    2 +-
 .../libtracker-miner/tracker-file-notifier-test.c  |    2 +-
 tests/libtracker-miner/tracker-monitor-test.c      |    2 +-
 utils/mtp/mtp-dummy.c                              |    2 +-
 15 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/examples/libtracker-miner/tracker-main.c b/examples/libtracker-miner/tracker-main.c
index 51e9fc8..78fe066 100644
--- a/examples/libtracker-miner/tracker-main.c
+++ b/examples/libtracker-miner/tracker-main.c
@@ -30,7 +30,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 
 static void
diff --git a/src/libtracker-common/tracker-storage.c b/src/libtracker-common/tracker-storage.c
index 070a3fa..5dd5bb8 100644
--- a/src/libtracker-common/tracker-storage.c
+++ b/src/libtracker-common/tracker-storage.c
@@ -31,7 +31,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /**
  * SECTION:tracker-storage
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index f2ceeab..de84448 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -45,7 +45,7 @@ typedef struct DirectoryRootInfo DirectoryRootInfo;
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 struct DirectoryChildData {
        GFile          *child;
diff --git a/src/libtracker-miner/tracker-media-art.c b/src/libtracker-miner/tracker-media-art.c
index 762e513..12f03fc 100644
--- a/src/libtracker-miner/tracker-media-art.c
+++ b/src/libtracker-miner/tracker-media-art.c
@@ -34,7 +34,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /**
  * SECTION:tracker-media-art
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index b7d27e2..44745a7 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -38,7 +38,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /* If defined will print the tree from GNode while running */
 #ifdef CRAWLED_TREE_ENABLE_TRACE
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 1ba6c61..96d9aa8 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -34,7 +34,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define TRACKER_MONITOR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TRACKER_TYPE_MONITOR, 
TrackerMonitorPrivate))
 
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 0e1a49c..23ab02b 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -27,7 +27,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /* Maximum time (seconds) before forcing a sparql buffer flush */
 #define MAX_SPARQL_BUFFER_TIME  15
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 1c9fea6..cdfe861 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -50,7 +50,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define ABOUT    \
        "Tracker " PACKAGE_VERSION "\n"
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 15a66b3..eab93ba 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -53,7 +53,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define DISK_SPACE_CHECK_FREQUENCY 10
 #define SECONDS_PER_DAY 86400
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index f7f3b4d..1d7a1e2 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -27,7 +27,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define TRACKER_WRITEBACK_SERVICE   "org.freedesktop.Tracker1.Writeback"
 #define TRACKER_WRITEBACK_PATH      "/org/freedesktop/Tracker1/Writeback"
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index 98a1e5a..8bf8995 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -33,7 +33,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define TRACKER_MINER_RSS_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TRACKER_TYPE_MINER_RSS, 
TrackerMinerRSSPrivate))
 
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c 
b/src/plugins/evolution/tracker-evolution-plugin.c
index 507cdf6..24be8ec 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -43,7 +43,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /* This is why you should seal your headers with one include for
  * client sanity. This is the horendous shit we've had to put up with
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index dd3a3f7..385886a 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -34,7 +34,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 typedef struct {
        gint op;
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c
index 3877e65..14b100c 100644
--- a/tests/libtracker-miner/tracker-monitor-test.c
+++ b/tests/libtracker-miner/tracker-monitor-test.c
@@ -28,7 +28,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 /* -------------- COMMON FOR ALL FILE EVENT TESTS ----------------- */
 
diff --git a/utils/mtp/mtp-dummy.c b/utils/mtp/mtp-dummy.c
index 9195ec1..e9bb558 100644
--- a/utils/mtp/mtp-dummy.c
+++ b/utils/mtp/mtp-dummy.c
@@ -27,7 +27,7 @@
 
 #define g_source_set_name_by_id(id, name) do { \
        g_warning("Source %i has name %s", id, name); \
-       g_source_set_name_by_id (id, name);
+       g_source_set_name_by_id (id, name); \
 } while(0);
 #define COPY_TIMEOUT_MS 100
 


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