Define G_TYPE_FORMAT as the printf format for a GType value. Either

2008-07-24  Tor Lillqvist  <tml@novell.com>

	* gtype.h: Define G_TYPE_FORMAT as the printf format for a GType
	value. Either G_GSIZE_FORMAT or "lu".

	* gtype.c: Use it instead of the C99 zu.


svn path=/trunk/; revision=7250
This commit is contained in:
Tor Lillqvist
2008-07-24 01:11:52 +00:00
committed by Tor Lillqvist
parent 440ebdec6f
commit b46641eab2
3 changed files with 11 additions and 2 deletions

View File

@@ -2355,7 +2355,7 @@ g_type_register_fundamental (GType type_id,
if ((type_id & TYPE_ID_MASK) ||
type_id > G_TYPE_FUNDAMENTAL_MAX)
{
g_warning ("attempt to register fundamental type `%s' with invalid type id (%zu)",
g_warning ("attempt to register fundamental type `%s' with invalid type id (%" G_TYPE_FORMAT ")",
type_name,
type_id);
return 0;
@@ -3937,7 +3937,7 @@ g_type_value_table_peek (GType type)
return vtable;
if (!node)
g_warning (G_STRLOC ": type id `%zu' is invalid", type);
g_warning (G_STRLOC ": type id `%" G_TYPE_FORMAT "' is invalid", type);
if (!has_refed_data)
g_warning ("can't peek value table for type `%s' which is not currently referenced",
type_descriptive_name_I (type));