- fprintf(stderr, "%s:%d: %s (%s)\n", file, line, buffer, error_str);
- } else {
- fprintf(stderr, "%s:%d: %s\n", file, line, error_str);
- }
+VkResult
+__vk_errorf(struct anv_instance *instance, const void *object,
+ VkDebugReportObjectTypeEXT type, VkResult error,
+ const char *file, int line, const char *format, ...)
+{
+ va_list ap;
+
+ va_start(ap, format);
+ __vk_errorv(instance, object, type, error, file, line, format, ap);
+ va_end(ap);