summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/galahad/glhd_context.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-07-06 10:36:55 +0100
committerJosé Fonseca <[email protected]>2012-07-06 18:38:39 +0100
commit3cb994afca4733e75936e6d92f107e87ce019b04 (patch)
tree9135536d5096c3d638917677674aec2e3b28e563 /src/gallium/drivers/galahad/glhd_context.h
parent1abb070633916e4d261e3174e681bba10075f225 (diff)
galahad: Use debug_printf.
stderr is not visible on windows.
Diffstat (limited to 'src/gallium/drivers/galahad/glhd_context.h')
-rw-r--r--src/gallium/drivers/galahad/glhd_context.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/galahad/glhd_context.h b/src/gallium/drivers/galahad/glhd_context.h
index 4e71753ac37..58ced834505 100644
--- a/src/gallium/drivers/galahad/glhd_context.h
+++ b/src/gallium/drivers/galahad/glhd_context.h
@@ -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(...) \