virgl: use debug_printf instead of fprintf
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 10 Apr 2019 11:40:56 +0000 (13:40 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 11 Apr 2019 07:53:25 +0000 (09:53 +0200)
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>
src/gallium/drivers/virgl/virgl_texture.c

index 75ee059fe76165debcbbb9f4413568eb1bcc4cb4..3871f265d4a759516174734f5d08d1d717e6b12d 100644 (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);
 }