diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-29 20:33:37 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2008-04-29 20:48:14 +0100 |
commit | 9bfe1a3d505733489f7583fe603b7d192f38fa8c (patch) | |
tree | c665fb36b4b1597cdb0085fb9dfde6d5217183f0 /src/gallium/include/pipe/p_debug.h | |
parent | 733bc4df1a53bb1899933685e06c52109d096bee (diff) |
gallium: add debug_print_format() make it easier to print format error messages
Diffstat (limited to 'src/gallium/include/pipe/p_debug.h')
-rw-r--r-- | src/gallium/include/pipe/p_debug.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h index 235c47abac..f87247994b 100644 --- a/src/gallium/include/pipe/p_debug.h +++ b/src/gallium/include/pipe/p_debug.h @@ -103,16 +103,19 @@ debug_printf(const char *format, ...) #endif +#ifdef DEBUG /** * Dump a blob in hex to the same place that debug_printf sends its * messages. */ -#ifdef DEBUG -void debug_print_blob( const char *name, - const void *blob, - unsigned size ); +void debug_print_blob( const char *name, const void *blob, unsigned size ); + +/* Print a message along with a prettified format string + */ +void debug_print_format(const char *msg, enum pipe_format fmt ); #else #define debug_print_blob(_name, _blob, _size) ((void)0) +#define debug_print_format(_msg, _fmt) ((void)0) #endif |