mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Use G_GSIZE_FORMAT instead of the C99 "zu".
2008-07-24 Tor Lillqvist <tml@novell.com> * glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of the C99 "zu". svn path=/trunk/; revision=7249
This commit is contained in:
parent
c023cc94f8
commit
440ebdec6f
@ -1,3 +1,8 @@
|
|||||||
|
2008-07-24 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of
|
||||||
|
the C99 "zu".
|
||||||
|
|
||||||
2008-07-24 Tor Lillqvist <tml@novell.com>
|
2008-07-24 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to
|
* configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to
|
||||||
|
@ -1245,17 +1245,17 @@ smc_notify_free (void *pointer,
|
|||||||
found_one = smc_tree_lookup (adress, &real_size);
|
found_one = smc_tree_lookup (adress, &real_size);
|
||||||
if (!found_one)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
if (real_size != size && (real_size || size))
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!smc_tree_remove (adress))
|
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 0;
|
||||||
}
|
}
|
||||||
return 1; /* all fine */
|
return 1; /* all fine */
|
||||||
|
Loading…
Reference in New Issue
Block a user