projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1abb070
)
galahad: Use debug_printf.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 6 Jul 2012 09:36:55 +0000
(10:36 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 6 Jul 2012 17:38:39 +0000
(18:38 +0100)
stderr is not visible on windows.
src/gallium/drivers/galahad/glhd_context.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/galahad/glhd_context.h
b/src/gallium/drivers/galahad/glhd_context.h
index 4e71753ac3708b822a146b1cf0f4ff7ae998b7a5..58ced834505bac541a768fe85fc354757c3f241e 100644
(file)
--- 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(...) \