summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-09-07 21:08:02 +0100
committerVincent Sanders <vince@kyllikki.org>2017-09-07 21:08:02 +0100
commitf89f7192efc43daa64c1fb591d0cfcc098b82c82 (patch)
treecaa1153b3678362c9a55586b43f3da0f2223c3b0 /frontends
parent3f3e7de6d94d66d515d43d4e921092f340788e4f (diff)
downloadnetsurf-f89f7192efc43daa64c1fb591d0cfcc098b82c82.tar.gz
netsurf-f89f7192efc43daa64c1fb591d0cfcc098b82c82.tar.bz2
fix size+t formatting in logging
Diffstat (limited to 'frontends')
-rw-r--r--frontends/gtk/layout_pango.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/gtk/layout_pango.c b/frontends/gtk/layout_pango.c
index 9e17c3b1c..a5964eb37 100644
--- a/frontends/gtk/layout_pango.c
+++ b/frontends/gtk/layout_pango.c
@@ -30,6 +30,7 @@
#include "utils/log.h"
#include "utils/nsoption.h"
+#include "netsurf/inttypes.h"
#include "netsurf/layout.h"
#include "netsurf/plot_style.h"
@@ -85,8 +86,8 @@ nsfont_width(const plot_font_style_t *fstyle,
pango_layout_get_pixel_size(nsfont_pango_layout, width, 0);
NSLOG(netsurf, DEEPDEBUG,
- "fstyle: %p string:\"%.*s\", length: %u, width: %dpx",
- fstyle, length, string, length, *width);
+ "fstyle: %p string:\"%.*s\", length: %" PRIsizet ", width: %dpx",
+ fstyle, (int)length, string, length, *width);
return NSERROR_OK;