Remove some debug messages.
authorDaniel Richard G <skunk@iSKUNK.ORG>
Thu, 2 Aug 2012 18:04:42 +0000 (20:04 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Aug 2012 11:34:54 +0000 (13:34 +0200)
These were only helpful during development and are commented out
for quite some time now. Remove them.

dss.c
signal.c
snap.c

diff --git a/dss.c b/dss.c
index 3a14e51..c9cfaa2 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -410,8 +410,6 @@ static struct snapshot *find_redundant_snapshot(struct snapshot_list *sl)
 
                if (keep >= num)
                        missing += keep - num;
-//             DSS_DEBUG_LOG("interval %i: keep: %u, have: %u, missing: %u\n",
-//                     interval, keep, num, missing);
                if (keep + missing >= num)
                        continue;
                /* redundant snapshot in this interval, pick snapshot with lowest score */
@@ -422,7 +420,6 @@ static struct snapshot *find_redundant_snapshot(struct snapshot_list *sl)
                                continue;
                        if (is_reference_snapshot(s))
                                continue;
-                       //DSS_DEBUG_LOG("checking %s\n", s->name);
                        if (s->interval > interval) {
                                prev = s;
                                continue;
@@ -438,7 +435,6 @@ static struct snapshot *find_redundant_snapshot(struct snapshot_list *sl)
                        /* check if s is a better victim */
                        this_score = s->creation_time - prev->creation_time;
                        assert(this_score >= 0);
-                       //DSS_DEBUG_LOG("%s: score %lli\n", s->name, (long long)score);
                        if (this_score < score) {
                                score = this_score;
                                victim = s;
index 3bbe87d..8dc93a6 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -70,7 +70,6 @@ err_out:
 static void generic_signal_handler(int s)
 {
        write(signal_pipe[1], &s, sizeof(int));
-       //fprintf(stderr, "got sig %i\n", s);
 }
 
 /**
diff --git a/snap.c b/snap.c
index 71b7e30..a9383c1 100644 (file)
--- a/snap.c
+++ b/snap.c
@@ -75,7 +75,6 @@ static int is_snapshot(const char *dirname, int64_t now, int unit_interval,
        if (num > now)
                return 0;
        s->creation_time = num;
-       //DSS_DEBUG_LOG("%s start time: %lli\n", dirname, (long long)s->creation_time);
        s->interval = (long long) ((now - s->creation_time)
                / unit_interval / 24 / 3600);
        if (!strcmp(dash + 1, "incomplete")) {