diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-15 10:19:26 +1000 |
---|---|---|
committer | Chase Douglas <chase.douglas@canonical.com> | 2011-12-21 10:34:10 -0800 |
commit | 69293c1f32f6d092279fcfa21b09e24e3b1a2e8f (patch) | |
tree | b6eee9bb7a17fc1e11cd8aff403b0476ca62a583 | |
parent | fcda98c48610fd507ca0b89c6006a5497d9dc1c9 (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>
-rw-r--r-- | include/misc.h | 4 |
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) |