From: Andre Noll Date: Sun, 10 Feb 2019 11:05:27 +0000 (+0100) Subject: find_oldest_removable_snapshot(): Improve log message. X-Git-Tag: v1.0.1~1^2~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4b924a3bd5b3dd3e5d28de86def51a25034291f1;p=dss.git find_oldest_removable_snapshot(): Improve log message. The other three functions which return a candidate for removal print one debug message but not the name of the selected snapshot, so make find_oldest_removable_snapshot() follow this pattern too. --- diff --git a/dss.c b/dss.c index 537c243..db45449 100644 --- a/dss.c +++ b/dss.c @@ -651,6 +651,7 @@ static struct snapshot *find_oldest_removable_snapshot(struct snapshot_list *sl) int i, num_complete; struct snapshot *s, *ref = NULL; + DSS_DEBUG_LOG(("picking snapshot with earliest creation time\n")); num_complete = num_complete_snapshots(sl); if (num_complete <= OPT_UINT32_VAL(DSS, MIN_COMPLETE)) return NULL; @@ -661,7 +662,6 @@ static struct snapshot *find_oldest_removable_snapshot(struct snapshot_list *sl) ref = s; continue; } - DSS_INFO_LOG(("oldest removable snapshot: %s\n", s->name)); return s; } assert(ref);