From 822fffa8e33d17848fb2e85e2724ed74a3150c6a Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Thu, 20 Jan 2011 12:55:51 +0000 Subject: A little more debug to help us spot how many users of locked contents there are, during shutdown svn path=/trunk/netsurf/; revision=11418 --- content/hlcache.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/hlcache.c b/content/hlcache.c index 082f2e877..6d4c3ea48 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -94,13 +94,15 @@ void hlcache_finalise(void) uint32_t num_contents, prev_contents; hlcache_entry *entry; hlcache_retrieval_ctx *ctx, *next; - + /* Obtain initial count of contents remaining */ for (num_contents = 0, entry = hlcache_content_list; entry != NULL; entry = entry->next) { num_contents++; } + LOG(("%d contents to before cache drain", num_contents)); + /* Drain cache */ do { prev_contents = num_contents; @@ -118,8 +120,8 @@ void hlcache_finalise(void) hlcache_handle entry_handle = { entry, NULL, NULL }; if (entry->content != NULL) { - LOG((" %p : %s", entry, - content_get_url(&entry_handle))); + LOG((" %p : %s (%d users)", entry, + content_get_url(&entry_handle), content_count_users(entry->content))); } else { LOG((" %p", entry)); } -- cgit v1.2.3