aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_debug.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-24 18:49:56 -0600
committerBrian <[email protected]>2008-03-24 18:49:56 -0600
commit4654803e2595ea041ea83baf5e13e6c68890e9a7 (patch)
tree9362a50e2d23a80a8c8c9f0a2edac789d30d4478 /src/gallium/include/pipe/p_debug.h
parentd6af8fc51d0288f34b92b7249c565c382e83765a (diff)
gallium: fix a few bugs, warnings in the p_debug code
added missing _ to a _debug_printf() call.
Diffstat (limited to 'src/gallium/include/pipe/p_debug.h')
-rw-r--r--src/gallium/include/pipe/p_debug.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h
index 95bdf2d3b99..577cdaebcdf 100644
--- a/src/gallium/include/pipe/p_debug.h
+++ b/src/gallium/include/pipe/p_debug.h
@@ -63,7 +63,7 @@ extern "C" {
void _debug_vprintf(const char *format, va_list ap);
-static void INLINE
+static INLINE void
_debug_printf(const char *format, ...)
{
va_list ap;
@@ -82,7 +82,7 @@ _debug_printf(const char *format, ...)
* - avoid outputing large strings (512 bytes is the current maximum length
* that is guaranteed to be printed in all platforms)
*/
-static void INLINE
+static INLINE void
debug_printf(const char *format, ...)
{
#ifdef DEBUG
@@ -133,6 +133,9 @@ void _debug_break(void);
#endif /* !DEBUG */
+long
+debug_get_num_option(const char *name, long dfault);
+
void _debug_assert_fail(const char *expr,
const char *file,
unsigned line,
@@ -176,7 +179,7 @@ void _debug_assert_fail(const char *expr,
*/
#ifdef DEBUG
#define debug_checkpoint_full() \
- debug_printf("%s:%u:%s", __FILE__, __LINE__, __FUNCTION__)
+ _debug_printf("%s:%u:%s", __FILE__, __LINE__, __FUNCTION__)
#else
#define debug_checkpoint_full() \
((void)0)