[tracker/sam/functional-test-fixes: 7/12] temp: log all source Ids
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/functional-test-fixes: 7/12] temp: log all source Ids
- Date: Sun, 7 Dec 2014 20:54:55 +0000 (UTC)
commit 67336ab7e2c610880f50a48a4213ef6c33fa48c3
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-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-storage.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-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 7bb0378..542061c 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -56,7 +56,7 @@ typedef struct {
#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 {
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 9d367e3..ec16669 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 cf369d3..02a5aad 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 a07b784..f428b5d 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -44,7 +44,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 744a024..60f227e 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -47,7 +47,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-storage.c b/src/miners/fs/tracker-storage.c
index db3a195..b0600d4 100644
--- a/src/miners/fs/tracker-storage.c
+++ b/src/miners/fs/tracker-storage.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);
/**
* SECTION:tracker-storage
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 d563d40..7091019 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 9e47f11..d69f0bb 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 854ab02..8393bc6 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]