0002-tests-use-G_GSIZE_FORMAT-instead-of-G_GUINT64_FORMAT.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. This fixes the build on 32-bit platforms with -Werror-format
  7. fixes #32
  8. Upstream-Status: Applied[https://gitlab.gnome.org/GNOME/sysprof/-/commit/5dea152c7728f5a37370ad8a229115833e36b4f6]
  9. ---
  10. src/tests/allocs-by-size.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/src/tests/allocs-by-size.c b/src/tests/allocs-by-size.c
  13. index 666113a..6260d4b 100644
  14. --- a/src/tests/allocs-by-size.c
  15. +++ b/src/tests/allocs-by-size.c
  16. @@ -109,7 +109,7 @@ allocs_by_size (SysprofCaptureReader *reader)
  17. {
  18. const Item *item = &g_array_index (ar, Item, i);
  19. - g_print ("%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT",%"G_GUINT64_FORMAT"\n",
  20. + g_print ("%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT",%"G_GSIZE_FORMAT"\n",
  21. item->size, item->cmp, item->count);
  22. }
  23. }
  24. --
  25. 2.21.3