diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-11-28 21:05:01 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-11-28 21:05:01 +0800 |
commit | ce4905721c40da7acbdb02caa5d2e24476590e4b (patch) | |
tree | ccb1be553fffc570f6da2e8f89e12f293f9346d3 /libibex/block.c | |
parent | 00890b71cf68d861e9ec72a459fa7e43464f4569 (diff) | |
download | gsoc2013-evolution-ce4905721c40da7acbdb02caa5d2e24476590e4b.tar.gz gsoc2013-evolution-ce4905721c40da7acbdb02caa5d2e24476590e4b.tar.zst gsoc2013-evolution-ce4905721c40da7acbdb02caa5d2e24476590e4b.zip |
Turn off index stats by default.
2000-11-28 Not Zed <NotZed@HelixCode.com>
* index.h: Turn off index stats by default.
* ibex_block.c (ibex_save): And here.
(ibex_close): Debug out printfs.
* wordindexmem.c (ibex_create_word_index_mem): And here.
(num): Made buf static.
* block.c (ibex_block_cache_open): Debug out some printfs.
(ibex_block_read): And here.
svn path=/trunk/; revision=6691
Diffstat (limited to 'libibex/block.c')
-rw-r--r-- | libibex/block.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libibex/block.c b/libibex/block.c index 3f637d4422..b9057bc109 100644 --- a/libibex/block.c +++ b/libibex/block.c @@ -420,7 +420,7 @@ ibex_block_read(struct _memcache *block_cache, blockid_t blockid) if (old->flags & BLOCK_DIRTY) { /* are we about to un-sync the file? update root and sync it */ if (block_cache->root.flags & IBEX_ROOT_SYNCF) { - printf("Unsyncing root block\n"); + d(printf("Unsyncing root block\n")); block_cache->root.flags &= ~IBEX_ROOT_SYNCF; if (ibex_block_sync_root(block_cache) != 0) { @@ -480,7 +480,7 @@ ibex_block_cache_open(const char *name, int flags, int mode) if (block_cache->root.roof == 0 || memcmp(block_cache->root.version, IBEX_VERSION, 4) || ((block_cache->root.flags & IBEX_ROOT_SYNCF) == 0)) { - (printf("Initialising superblock\n")); + d(printf("Initialising superblock\n")); /* reset root data */ memcpy(block_cache->root.version, IBEX_VERSION, 4); block_cache->root.roof = 1024; @@ -493,10 +493,10 @@ ibex_block_cache_open(const char *name, int flags, int mode) /* reset the file contents */ ftruncate(block_cache->fd, 1024); } else { - (printf("superblock already initialised:\n" - " roof = %d\n free = %d\n words = %d\n names = %d\n tail = %d\n", - block_cache->root.roof, block_cache->root.free, - block_cache->root.words, block_cache->root.names, block_cache->root.tail)); + d(printf("superblock already initialised:\n" + " roof = %d\n free = %d\n words = %d\n names = %d\n tail = %d\n", + block_cache->root.roof, block_cache->root.free, + block_cache->root.words, block_cache->root.names, block_cache->root.tail)); } /* FIXME: this should be moved higher up in the object tree */ { |