diff options
author | José Fonseca <[email protected]> | 2008-02-07 01:07:49 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-02-07 01:07:49 +0900 |
commit | af6b12cc76b40c86f3b144a7f5cd3ef1278863d0 (patch) | |
tree | fb818975cc5cc66696fe109500ad779c571be956 /src/mesa/pipe/util | |
parent | 9791d7f64c5a58b9c1bf32d00c71e0e031f54f70 (diff) |
gallium: Bring latest fixes.
Diffstat (limited to 'src/mesa/pipe/util')
-rw-r--r-- | src/mesa/pipe/util/p_debug.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mesa/pipe/util/p_debug.c b/src/mesa/pipe/util/p_debug.c index 9303c970cca..b9607a6ba7f 100644 --- a/src/mesa/pipe/util/p_debug.c +++ b/src/mesa/pipe/util/p_debug.c @@ -40,16 +40,22 @@ #include "pipe/p_compiler.h" -void debug_printf(const char *format, ...) +void debug_vprintf(const char *format, va_list ap) { - va_list ap; - va_start( ap, format ); #ifdef WIN32 EngDebugPrint("Gallium3D: ", (PCHAR)format, ap); #else vfprintf(stderr, format, ap); #endif - va_end( ap ); +} + + +void debug_printf(const char *format, ...) +{ + va_list ap; + va_start(ap, format); + debug_vprintf(format, ap); + va_end(ap); } @@ -65,6 +71,6 @@ static INLINE void debug_abort(void) void debug_assert_fail(const char *expr, const char *file, unsigned line) { - debug_printf("%s:%i: Assertion `%s' failed."); + debug_printf("%s:%i: Assertion `%s' failed.\n", file, line, expr); debug_abort(); } |