[sysprof: 1/2] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for gsize
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof: 1/2] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for gsize
- Date: Sun, 8 Mar 2020 02:12:24 +0000 (UTC)
commit 5dea152c7728f5a37370ad8a229115833e36b4f6
Author: Rasmus Thomsen <oss cogitri dev>
Date: Sat Mar 7 10:44:16 2020 +0100
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
src/tests/allocs-by-size.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
index 666113a..6260d4b 100644
--- a/src/tests/allocs-by-size.c
+++ b/src/tests/allocs-by-size.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]