use correct printf format

Original commit message from CVS:
use correct printf format
This commit is contained in:
Thomas Vander Stichele 2005-05-02 15:18:17 +00:00
parent 3eefb22fdd
commit 5ea8627237
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
* testsuite/elements/property.h:
use correct printf format
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/gst/tmpl/gstconfig.sgml:

View file

@ -10,7 +10,7 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
g_object_get_property (G_OBJECT (orig), pspec->name, &value);
/* fix current bug with g_strdup_value_contents not working with gint64 */
if (G_IS_PARAM_SPEC_INT64 (pspec))
str = g_strdup_printf ("%lld", g_value_get_int64 (&value));
str = g_strdup_printf ("%" G_GINT64_FORMAT, g_value_get_int64 (&value));
else
str = g_strdup_value_contents (&value);
g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);

View file

@ -10,7 +10,7 @@ property_change_callback (GObject *object, GstObject *orig, GParamSpec *pspec)
g_object_get_property (G_OBJECT (orig), pspec->name, &value);
/* fix current bug with g_strdup_value_contents not working with gint64 */
if (G_IS_PARAM_SPEC_INT64 (pspec))
str = g_strdup_printf ("%lld", g_value_get_int64 (&value));
str = g_strdup_printf ("%" G_GINT64_FORMAT, g_value_get_int64 (&value));
else
str = g_strdup_value_contents (&value);
g_print ("%s: %s = %s\n", GST_OBJECT_NAME (orig), pspec->name, str);