validate-reporter: More comprehensive debug message

Some issues don't have any arguments, so put the full details in.
This commit is contained in:
Edward Hervey 2013-08-21 18:00:16 +02:00
parent 529576e69b
commit de930073fc

View file

@ -117,7 +117,9 @@ gst_validate_report_valist (GstValidateReporter * reporter,
g_hash_table_insert (priv->reports, (gpointer) issue_id, report); g_hash_table_insert (priv->reports, (gpointer) issue_id, report);
} }
combo = g_strdup_printf ("<%s>:%s", priv->name, format); combo =
g_strdup_printf ("<%s> %" GST_VALIDATE_ISSUE_FORMAT " : %s", priv->name,
GST_VALIDATE_ISSUE_ARGS (issue), format);
G_VA_COPY (vacopy, var_args); G_VA_COPY (vacopy, var_args);
if (report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL) if (report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL)
gst_debug_log_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, __FILE__, gst_debug_log_valist (GST_CAT_DEFAULT, GST_LEVEL_ERROR, __FILE__,