Mesa (master): gallium/util: fix pipe_debug_message macro to allow 0 args

Ilia Mirkin imirkin at kemper.freedesktop.org
Fri Dec 4 20:24:44 UTC 2015


Module: Mesa
Branch: master
Commit: a3f90ef0a6b47488171abb32c6471b7d92f5e0fa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3f90ef0a6b47488171abb32c6471b7d92f5e0fa

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Dec  4 15:08:23 2015 -0500

gallium/util: fix pipe_debug_message macro to allow 0 args

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Brian Paul <brianp at vmware.com>
Tested-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/util/u_debug.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index aaf223c..9900703 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -270,7 +270,7 @@ void _debug_assert_fail(const char *expr,
    static unsigned id = 0; \
    _pipe_debug_message(cb, &id, \
                        PIPE_DEBUG_TYPE_ ## type, \
-                       fmt, __VA_ARGS__); \
+                       fmt, ##__VA_ARGS__); \
 } while (0)
 
 struct pipe_debug_callback;




More information about the mesa-commit mailing list