mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 05:10:23 +01:00
turnip: Use mesa's normal PRINTFLIKE macro instead of our own.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7014>
This commit is contained in:
parent
a7bc2f8d1b
commit
01de452b5d
2 changed files with 2 additions and 4 deletions
|
|
@ -112,8 +112,6 @@ typedef uint32_t xcb_window_t;
|
|||
#define A6XX_TEX_CONST_DWORDS 16
|
||||
#define A6XX_TEX_SAMP_DWORDS 4
|
||||
|
||||
#define tu_printflike(a, b) __attribute__((__format__(__printf__, a, b)))
|
||||
|
||||
#define for_each_bit(b, dword) \
|
||||
for (uint32_t __dword = (dword); \
|
||||
(b) = __builtin_ffs(__dword) - 1, __dword; __dword &= ~(1 << (b)))
|
||||
|
|
@ -143,7 +141,7 @@ __vk_errorf(struct tu_instance *instance,
|
|||
|
||||
void
|
||||
__tu_finishme(const char *file, int line, const char *format, ...)
|
||||
tu_printflike(3, 4);
|
||||
PRINTFLIKE(3, 4);
|
||||
|
||||
/**
|
||||
* Print a FINISHME message, including its source location.
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#include "util/u_math.h"
|
||||
#include "vk_enum_to_str.h"
|
||||
|
||||
void tu_printflike(3, 4)
|
||||
void PRINTFLIKE(3, 4)
|
||||
__tu_finishme(const char *file, int line, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue