dovecot-2.0: dsync: Minor verbose logging improvements.

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 10 20:36:06 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/ab4e247d326d
changeset: 9759:ab4e247d326d
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 10 13:36:01 2009 -0400
description:
dsync: Minor verbose logging improvements.

diffstat:

1 file changed, 5 insertions(+), 4 deletions(-)
src/dsync/dsync-brain.c |    9 +++++----

diffs (33 lines):

diff -r f36fbaeddbf8 -r ab4e247d326d src/dsync/dsync-brain.c
--- a/src/dsync/dsync-brain.c	Mon Aug 10 13:17:21 2009 -0400
+++ b/src/dsync/dsync-brain.c	Mon Aug 10 13:36:01 2009 -0400
@@ -213,24 +213,25 @@ static bool dsync_mailbox_has_changed_ms
 					   const struct dsync_mailbox *box1,
 					   const struct dsync_mailbox *box2)
 {
+	const char *name = *box1->name != '\0' ? box1->name : box2->name;
+
 	if (box1->uid_validity != box2->uid_validity) {
 		if (brain->verbose) {
-			i_info("%s: uidvalidity changed %u -> %u", box1->name,
+			i_info("%s: uidvalidity changed %u -> %u", name,
 			       box1->uid_validity, box2->uid_validity);
 		}
 		return TRUE;
 	}
 	if (box1->uid_next != box2->uid_next) {
 		if (brain->verbose) {
-			i_info("%s: uidnext changed %u -> %u", box1->name,
+			i_info("%s: uidnext changed %u -> %u", name,
 			       box1->uid_next, box2->uid_next);
 		}
 		return TRUE;
 	}
 	if (box1->highest_modseq != box2->highest_modseq) {
 		if (brain->verbose) {
-			i_info("%s: highest_modseq changed %llu -> %llu",
-			       box1->name,
+			i_info("%s: highest_modseq changed %llu -> %llu", name,
 			       (unsigned long long)box1->highest_modseq,
 			       (unsigned long long)box2->highest_modseq);
 		}


More information about the dovecot-cvs mailing list