Commit Diff


commit - 7cf5e9c21a8773b07c6c99ab6219ffc5cac6b83d
commit + f4081577c6c649149ef61572d31b82167e5ad33b
blob - 894e86cb82d9dc6d0e0a129148bf40e2ff3bb703
blob + d8a7f34cbbcb00ac1a9f4f7dda9b4085c5b8cf27
--- Makefile.inc
+++ Makefile.inc
@@ -3,6 +3,7 @@ GOT_LIBEXECDIR = ${HOME}/bin
 CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 #CFLAGS += -DGOT_PACK_NO_MMAP
 #CFLAGS += -DGOT_NO_OBJ_CACHE
+#CFLAGS += -DGOT_OBJ_CACHE_DEBUG
 
 .if defined(PROFILE)
 CC = gcc
blob - 3de45cdf369ed82f4d3e6d6eb7380119efd66fe7
blob + 37d339c146872a7e5adbf13feaf7102b0abb8bcb
--- lib/object_cache.c
+++ lib/object_cache.c
@@ -138,7 +138,7 @@ got_object_cache_get(struct got_object_cache *cache, s
 	return NULL;
 }
 
-#if 0
+#ifdef GOT_OBJ_CACHE_DEBUG
 static void
 print_cache_stats(struct got_object_cache *cache, const char *name)
 {
@@ -190,7 +190,7 @@ void check_refcount(struct got_object_id *id, void *da
 void
 got_object_cache_close(struct got_object_cache *cache)
 {
-#if 0
+#ifdef GOT_OBJ_CACHE_DEBUG
 	switch (cache->type) {
 	case GOT_OBJECT_CACHE_TYPE_OBJ:
 		print_cache_stats(cache, "object");