summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 10:19:26 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-15 15:17:55 +1000
commitff6d9c79c1aa502f1aef81d8063425e5fc002534 (patch)
tree955ec6202ede365d00c384e66bb3ee56b47f17a7 /include
parent4c80dc1394344dc10cffe4f757c980944312dc3d (diff)
include: fix BUG_WARN_MSG for constant messages only
Previous declaration required the use of a message + printf varargs. We obviously want to allow the use of just a message. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/misc.h b/include/misc.h
index 09f928a50..3d08511ec 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -370,8 +370,8 @@ extern _X_EXPORT unsigned long serverGeneration;
xorg_backtrace(); \
} } while(0)
-#define BUG_WARN_MSG(cond, msg, ...) \
- __BUG_WARN_MSG(cond, 1, msg, __VA_ARGS__)
+#define BUG_WARN_MSG(cond, ...) \
+ __BUG_WARN_MSG(cond, 1, __VA_ARGS__)
#define BUG_WARN(cond) __BUG_WARN_MSG(cond, 0, NULL)