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>
This commit is contained in:
parent
4c80dc1394
commit
ff6d9c79c1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user