dovecot: Show integer output for 64bit fixed fields in cache file.

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 22 03:52:34 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/595b600ddf8b
changeset: 7029:595b600ddf8b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 22 03:52:30 2007 +0200
description:
Show integer output for 64bit fixed fields in cache file.

diffstat:

1 file changed, 2 insertions(+)
src/util/idxview.c |    2 ++

diffs (12 lines):

diff -r 78a75a5a5350 -r 595b600ddf8b src/util/idxview.c
--- a/src/util/idxview.c	Sat Dec 22 03:17:46 2007 +0200
+++ b/src/util/idxview.c	Sat Dec 22 03:52:30 2007 +0200
@@ -263,6 +263,8 @@ static void dump_cache(struct mail_cache
 		case MAIL_CACHE_FIELD_FIXED_SIZE:
 			if (size == sizeof(uint32_t))
 				str_printfa(str, "%u ", *((const uint32_t *)data));
+			else if (size == sizeof(uint64_t))
+				str_printfa(str, "%llu ", (unsigned long long)*((const uint64_t *)data));
 		case MAIL_CACHE_FIELD_VARIABLE_SIZE:
 		case MAIL_CACHE_FIELD_BITMASK:
 			str_printfa(str, "(%s)", binary_to_hex(data, size));


More information about the dovecot-cvs mailing list