diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/isl/isl_priv.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/intel/isl/isl_priv.h b/src/intel/isl/isl_priv.h index dc3975d3ca8..1867d258822 100644 --- a/src/intel/isl/isl_priv.h +++ b/src/intel/isl/isl_priv.h @@ -33,7 +33,13 @@ #include "isl.h" #define isl_finishme(format, ...) \ - __isl_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__) + do { \ + static bool reported = false; \ + if (!reported) { \ + __isl_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__); \ + reported = true; \ + } \ + } while (0) void PRINTFLIKE(3, 4) UNUSED __isl_finishme(const char *file, int line, const char *fmt, ...); |