summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-11-24 18:18:15 +0000
committerEmil Velikov <[email protected]>2016-11-28 19:12:49 +0000
commit3f9397753b9db577ad41ff1e8e72d9ae90401261 (patch)
tree2165ad4f02507bbfbb8b84cbf2f1d313566d84ae /src
parentf3a1c17b96ad797735214d2012b1436af9cb46d4 (diff)
isl: Make isl_finishme only warn once per call-site
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/isl/isl_priv.h8
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, ...);