mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
galahad: Use debug_printf.
stderr is not visible on windows.
This commit is contained in:
parent
1abb070633
commit
3cb994afca
1 changed files with 5 additions and 3 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#include "pipe/p_state.h"
|
||||
#include "pipe/p_context.h"
|
||||
|
||||
#include "util/u_debug.h"
|
||||
|
||||
|
||||
struct galahad_context {
|
||||
struct pipe_context base; /**< base class */
|
||||
|
|
@ -53,9 +55,9 @@ galahad_context(struct pipe_context *pipe)
|
|||
|
||||
#define glhd_warn(...) \
|
||||
do { \
|
||||
fprintf(stderr, "galahad: %s: ", __FUNCTION__); \
|
||||
fprintf(stderr, __VA_ARGS__); \
|
||||
fprintf(stderr, "\n"); \
|
||||
debug_printf("galahad: %s: ", __FUNCTION__); \
|
||||
debug_printf(__VA_ARGS__); \
|
||||
debug_printf("\n"); \
|
||||
} while (0)
|
||||
|
||||
#define glhd_error(...) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue