blob: d8fffbb7e9ad9a54050cd713ce7d707c23d2acdb [file] [log] [blame]
Andrew Geissler89770b02020-06-13 10:40:47 -05001From 5dea152c7728f5a37370ad8a229115833e36b4f6 Mon Sep 17 00:00:00 2001
2From: Rasmus Thomsen <oss@cogitri.dev>
3Date: Sat, 7 Mar 2020 10:44:16 +0100
4Subject: [PATCH] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for
5 gsize
6
7This fixes the build on 32-bit platforms with -Werror-format
8
9fixes #32
10
11Upstream-Status: Applied[https://gitlab.gnome.org/GNOME/sysprof/-/commit/5dea152c7728f5a37370ad8a229115833e36b4f6]
12---
13 src/tests/allocs-by-size.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
17index 666113a..6260d4b 100644
18--- a/src/tests/allocs-by-size.c
19+++ b/src/tests/allocs-by-size.c
20@@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
21 {
22 const Item *item = &g_array_index (ar, Item, i);
23
24- g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
25+ g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
26 item->size, item->cmp, item->count);
27 }
28 }
29--
302.21.3
31