mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
more print format fixes
Original commit message from CVS: more print format fixes
This commit is contained in:
parent
5ea8627237
commit
a09c309383
5 changed files with 22 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* testsuite/indexers/cache1.c: (lookup):
|
||||||
|
* testsuite/indexers/indexdump.c: (main):
|
||||||
|
more print format fixes
|
||||||
|
|
||||||
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-05-02 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* testsuite/elements/property.h:
|
* testsuite/elements/property.h:
|
||||||
|
|
|
@ -33,9 +33,10 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
|
||||||
gst_index_entry_assoc_map (entry, dest_format, &result);
|
gst_index_entry_assoc_map (entry, dest_format, &result);
|
||||||
|
|
||||||
if (result == expecting) {
|
if (result == expecting) {
|
||||||
g_print ("OK (%lld)\n", result);
|
g_print ("OK (%" G_GINT64_FORMAT ")\n", result);
|
||||||
} else {
|
} else {
|
||||||
g_print ("FAIL - expecting %lld, got %lld\n", expecting, result);
|
g_print ("FAIL - expecting %" G_GINT64_FORMAT ", got %" G_GINT64_FORMAT
|
||||||
|
"\n", expecting, result);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const GstFormatDefinition *def = gst_format_get_details (src_format);
|
const GstFormatDefinition *def = gst_format_get_details (src_format);
|
||||||
|
@ -43,8 +44,9 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
|
||||||
if (expecting == -1)
|
if (expecting == -1)
|
||||||
g_print ("OK (not found)\n");
|
g_print ("OK (not found)\n");
|
||||||
else
|
else
|
||||||
g_print ("FAIL - no index entry found for %lld %s, expecting %lld\n",
|
g_print ("FAIL - no index entry found for %" G_GINT64_FORMAT
|
||||||
src_value, def->nick, expecting);
|
" %s, expecting %" G_GINT64_FORMAT "\n", src_value, def->nick,
|
||||||
|
expecting);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,8 @@ main (gint argc, gchar * argv[])
|
||||||
g_print (" time %.4f",
|
g_print (" time %.4f",
|
||||||
GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
|
GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
|
||||||
} else
|
} else
|
||||||
g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
|
g_print (" %s %" G_GINT64_FORMAT, def->nick,
|
||||||
|
GST_INDEX_ASSOC_VALUE (entry, fx));
|
||||||
}
|
}
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,10 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
|
||||||
gst_index_entry_assoc_map (entry, dest_format, &result);
|
gst_index_entry_assoc_map (entry, dest_format, &result);
|
||||||
|
|
||||||
if (result == expecting) {
|
if (result == expecting) {
|
||||||
g_print ("OK (%lld)\n", result);
|
g_print ("OK (%" G_GINT64_FORMAT ")\n", result);
|
||||||
} else {
|
} else {
|
||||||
g_print ("FAIL - expecting %lld, got %lld\n", expecting, result);
|
g_print ("FAIL - expecting %" G_GINT64_FORMAT ", got %" G_GINT64_FORMAT
|
||||||
|
"\n", expecting, result);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const GstFormatDefinition *def = gst_format_get_details (src_format);
|
const GstFormatDefinition *def = gst_format_get_details (src_format);
|
||||||
|
@ -43,8 +44,9 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
|
||||||
if (expecting == -1)
|
if (expecting == -1)
|
||||||
g_print ("OK (not found)\n");
|
g_print ("OK (not found)\n");
|
||||||
else
|
else
|
||||||
g_print ("FAIL - no index entry found for %lld %s, expecting %lld\n",
|
g_print ("FAIL - no index entry found for %" G_GINT64_FORMAT
|
||||||
src_value, def->nick, expecting);
|
" %s, expecting %" G_GINT64_FORMAT "\n", src_value, def->nick,
|
||||||
|
expecting);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,8 @@ main (gint argc, gchar * argv[])
|
||||||
g_print (" time %.4f",
|
g_print (" time %.4f",
|
||||||
GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
|
GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
|
||||||
} else
|
} else
|
||||||
g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
|
g_print (" %s %" G_GINT64_FORMAT, def->nick,
|
||||||
|
GST_INDEX_ASSOC_VALUE (entry, fx));
|
||||||
}
|
}
|
||||||
g_print ("\n");
|
g_print ("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue