gallium: add debug_print_format() make it easier to print format error messages

This commit is contained in:
Keith Whitwell
2008-04-29 20:33:37 +01:00
parent 733bc4df1a
commit 9bfe1a3d50
4 changed files with 111 additions and 89 deletions

View File

@@ -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