summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
authorDeltaVonNeumann <deltavprogrammer@gmail.com>2023-06-17 10:29:39 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2023-06-17 10:29:39 +0100
commita16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a (patch)
treef741f98765b955eb0ac893991dd83cf91616f210 /content/hlcache.c
parent21e636a3a6056c23bbd4257f50315532fe010aa5 (diff)
downloadnetsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.gz
netsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.bz2
Avoid integer types with platform dependent size
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index d860015a5..59ed17e4d 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, "%"PRId32" contents remain before cache drain",
num_contents);
/* Drain cache */
@@ -607,7 +608,7 @@ 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, "%"PRId32" contents remaining after being polite", num_contents);
/* Drain cache again, forcing the matter */
do {
@@ -621,12 +622,12 @@ void hlcache_finalise(void)
}
} while (num_contents > 0 && num_contents != prev_contents);
- NSLOG(netsurf, INFO, "%d contents remaining:", num_contents);
+ NSLOG(netsurf, INFO, "%"PRId32" 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 (%"PRId32" users)",
entry,
nsurl_access(hlcache_handle_get_url(&entry_handle)),
content_count_users(entry->content));