mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 18:30:09 +01:00
gallium: Document debug_printf usage.
This commit is contained in:
parent
8143adafdd
commit
fc96aec9b7
2 changed files with 16 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ C_SOURCES = \
|
|||
p_debug.c \
|
||||
p_tile.c \
|
||||
p_util.c \
|
||||
u_mm.c
|
||||
u_mm.c \
|
||||
u_snprintf.c
|
||||
|
||||
include ../../Makefile.template
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,22 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Print debug messages.
|
||||
*
|
||||
* A debug message will be printed regardless of the DEBUG/NDEBUG macros.
|
||||
*
|
||||
* The actual channel used to output debug message is platform specific. To
|
||||
* avoid misformating or truncation, follow these rules of thumb:
|
||||
* - output whole lines
|
||||
* - avoid outputing large strings (512 bytes is the current maximum length
|
||||
* that is guaranteed to be printed in all platforms)
|
||||
*/
|
||||
void debug_printf(const char *format, ...);
|
||||
|
||||
/**
|
||||
* @sa debug_printf
|
||||
*/
|
||||
void debug_vprintf(const char *format, va_list ap);
|
||||
|
||||
void debug_assert_fail(const char *expr, const char *file, unsigned line);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue