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 <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
Erik Faye-Lund 2019-04-10 13:40:56 +02:00
parent 7394ef4a72
commit b60a13d5cb
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}