diff options
Diffstat (limited to 'content/hlcache.c')
-rw-r--r-- | content/hlcache.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/content/hlcache.c b/content/hlcache.c index d860015a5..b27e4f11e 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -30,6 +30,7 @@ #include "utils/messages.h" #include "utils/ring.h" #include "utils/utils.h" +#include "netsurf/inttypes.h" #include "netsurf/misc.h" #include "netsurf/content.h" #include "desktop/gui_internal.h" @@ -592,7 +593,7 @@ void hlcache_finalise(void) num_contents++; } - NSLOG(netsurf, INFO, "%d contents remain before cache drain", + NSLOG(netsurf, INFO, "%"PRIu32" contents remain before cache drain", num_contents); /* Drain cache */ @@ -607,7 +608,8 @@ void hlcache_finalise(void) } } while (num_contents > 0 && num_contents != prev_contents); - NSLOG(netsurf, INFO, "%d contents remaining after being polite", num_contents); + NSLOG(netsurf, INFO, "%"PRIu32" contents remaining after being polite", + num_contents); /* Drain cache again, forcing the matter */ do { @@ -621,12 +623,12 @@ void hlcache_finalise(void) } } while (num_contents > 0 && num_contents != prev_contents); - NSLOG(netsurf, INFO, "%d contents remaining:", num_contents); + NSLOG(netsurf, INFO, "%"PRIu32" contents remaining:", num_contents); for (entry = hlcache->content_list; entry != NULL; entry = entry->next) { hlcache_handle entry_handle = { entry, NULL, NULL }; if (entry->content != NULL) { - NSLOG(netsurf, INFO, " %p : %s (%d users)", + NSLOG(netsurf, INFO, " %p : %s (%"PRIu32" users)", entry, nsurl_access(hlcache_handle_get_url(&entry_handle)), content_count_users(entry->content)); @@ -824,7 +826,7 @@ nserror hlcache_handle_abort(hlcache_handle *handle) if (clone == NULL) return NSERROR_NOMEM; - entry = calloc(sizeof(struct hlcache_entry), 1); + entry = calloc(1, sizeof(struct hlcache_entry)); if (entry == NULL) { content_destroy(clone); |