summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-04-10 13:40:56 +0200
committerErik Faye-Lund <[email protected]>2019-04-11 09:53:25 +0200
commitb60a13d5cb3621fda7ce031b3b04d54fa7906eb4 (patch)
tree8873bd6c439f5b451e56b5ea0c3d101719b8a15a
parent7394ef4a7293e7ec6322faf18e7ddeef9c2c0183 (diff)
virgl: use debug_printf instead of fprintf
While we're at it, prefix the string with "VIRGL: ", to match similar code elsewhere in virgl. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
-rw-r--r--src/gallium/drivers/virgl/virgl_texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c
index 75ee059fe76..3871f265d4a 100644
--- a/src/gallium/drivers/virgl/virgl_texture.c
+++ b/src/gallium/drivers/virgl/virgl_texture.c
@@ -66,7 +66,9 @@ static unsigned temp_bind(unsigned orig)
unsigned warn = ~(PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL |
PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_DISPLAY_TARGET);
if (orig & warn)
- fprintf(stderr, "Waring, possibly unhandled bind: %x\n", orig & warn);
+ debug_printf("VIRGL: Warning, possibly unhandled bind: %x\n",
+ orig & warn);
+
return orig & (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET);
}