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 3a14e51d8fca8c954d2c0161952a9fd0896ee6ea..c9cfaa2d900839c98550e68d83afe30c50bef73f 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 3bbe87d84a810afcb21f11de65b48caf80c622ac..8dc93a636c0389b5937c7dcecf89705608f78838 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 71b7e30c5f9d248c4815d0c8d0e409eb6c41254e..a9383c12cceeb2a29e2113337621ac825af90c49 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")) {