tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for gsize

This fixes the build on 32-bit platforms with -Werror-format

fixes #32
This commit is contained in:
Rasmus Thomsen
2020-03-07 10:44:16 +01:00
parent dcaeba54ee
commit 5dea152c77

View File

@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
{
const Item *item = &g_array_index (ar, Item, i);
g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
item->size, item->cmp, item->count);
}
}