From 440ebdec6ff0b6036349392b1a08cd0639d9d4d5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 24 Jul 2008 00:50:08 +0000 Subject: [PATCH] Use G_GSIZE_FORMAT instead of the C99 "zu". 2008-07-24 Tor Lillqvist * glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of the C99 "zu". svn path=/trunk/; revision=7249 --- ChangeLog | 5 +++++ glib/gslice.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5672ce8..6a1bb10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-07-24 Tor Lillqvist + * glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of + the C99 "zu". + +2008-07-24 Tor Lillqvist + * configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to glibconfig.h using the same two phase code as for the other defines in it. Can't check enable_included_printf directly in the diff --git a/glib/gslice.c b/glib/gslice.c index 5bad65e..70f9efa 100644 --- a/glib/gslice.c +++ b/glib/gslice.c @@ -1245,17 +1245,17 @@ smc_notify_free (void *pointer, found_one = smc_tree_lookup (adress, &real_size); if (!found_one) { - fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%zu\n", pointer, size); + fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); return 0; } if (real_size != size && (real_size || size)) { - fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: %p size=%zu invalid-size=%zu\n", pointer, real_size, size); + fprintf (stderr, "GSlice: MemChecker: attempt to release block with invalid size: %p size=%" G_GSIZE_FORMAT " invalid-size=%" G_GSIZE_FORMAT "\n", pointer, real_size, size); return 0; } if (!smc_tree_remove (adress)) { - fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%zu\n", pointer, size); + fprintf (stderr, "GSlice: MemChecker: attempt to release non-allocated block: %p size=%" G_GSIZE_FORMAT "\n", pointer, size); return 0; } return 1; /* all fine */ -- 2.7.4