Author: jmb
Date: Tue Aug 10 16:46:45 2010
New Revision: 10687
URL:
http://source.netsurf-browser.org?rev=10687&view=rev
Log:
Less spam
Modified:
trunk/netsurf/content/llcache.c
Modified: trunk/netsurf/content/llcache.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/content/llcache.c?rev=106...
==============================================================================
--- trunk/netsurf/content/llcache.c (original)
+++ trunk/netsurf/content/llcache.c Tue Aug 10 16:46:45 2010
@@ -1244,7 +1244,7 @@
llcache_event event;
#ifdef LLCACHE_TRACE
- LOG(("Notifying users of %p", object));
+ bool emitted_notify = false;
#endif
/**
@@ -1281,9 +1281,15 @@
next_user = user->next;
#ifdef LLCACHE_TRACE
- if (handle->state != objstate)
+ if (handle->state != objstate) {
+ if (emitted_notify == false) {
+ LOG(("Notifying users of %p", object));
+ emitted_notify = true;
+ }
+
LOG(("User %p state: %d Object state: %d",
user, handle->state, objstate));
+ }
#endif
/* User: INIT, Obj: HEADERS, DATA, COMPLETE => User->HEADERS */