vk: Use a temporary buffer for formatting in finishme
This is more likely to avoid breaking up the message when racing with other threads.
This commit is contained in:
@@ -34,12 +34,13 @@ void
|
|||||||
__anv_finishme(const char *file, int line, const char *format, ...)
|
__anv_finishme(const char *file, int line, const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
char buffer[256];
|
||||||
|
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
fprintf(stderr, "%s:%d: FINISHME: ", file, line);
|
vsnprintf(buffer, sizeof(buffer), format, ap);
|
||||||
vfprintf(stderr, format, ap);
|
|
||||||
fprintf(stderr, "\n");
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
fprintf(stderr, "%s:%d: FINISHME: %s\n", file, line, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user