Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame^] | 1 | From 5dea152c7728f5a37370ad8a229115833e36b4f6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Rasmus Thomsen <oss@cogitri.dev> |
| 3 | Date: Sat, 7 Mar 2020 10:44:16 +0100 |
| 4 | Subject: [PATCH] tests: use G_GSIZE_FORMAT instead of G_GUINT64_FORMAT for |
| 5 | gsize |
| 6 | |
| 7 | This fixes the build on 32-bit platforms with -Werror-format |
| 8 | |
| 9 | fixes #32 |
| 10 | |
| 11 | Upstream-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 | |
| 16 | diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c |
| 17 | index 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 | -- |
| 30 | 2.21.3 |
| 31 | |