[PATCH 01/42] include: fix BUG_WARN_MSG for constant messages only

Alan Coopersmith alan.coopersmith at oracle.com
Wed Dec 14 20:41:04 PST 2011


On 12/14/11 19:01, Peter Hutterer wrote:
> 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 at who-t.net>
> ---
>   include/misc.h |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/misc.h b/include/misc.h
> index 09f928a..3d08511 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)
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list