From: Daniel Richard G Date: Thu, 2 Aug 2012 18:04:42 +0000 (+0200) Subject: Remove some debug messages. X-Git-Tag: v0.1.5~12^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=9e6c2f5e801c5b192d8e25987ef1a326dce20d27;p=dss.git Remove some debug messages. These were only helpful during development and are commented out for quite some time now. Remove them. --- diff --git a/dss.c b/dss.c index 3a14e51..c9cfaa2 100644 --- 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; diff --git a/signal.c b/signal.c index 3bbe87d..8dc93a6 100644 --- 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 --- 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")) {