From d5da9bba31a85a61fc683f202e21cf1ea81215bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 5 Mar 2015 00:15:45 +0100 Subject: Do not print warnings on stdout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The driver should not use stdout as this pipe is used by a lot of programs to exchange data and should instead print debug messages to stderr Signed-off-by: Michael Müller --- src/gen75_picture_process.c | 2 +- src/intel_driver.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gen75_picture_process.c b/src/gen75_picture_process.c index d64ef055..cf20ed9b 100644 --- a/src/gen75_picture_process.c +++ b/src/gen75_picture_process.c @@ -221,7 +221,7 @@ gen75_proc_picture(VADriverContextP ctx, filter->type != VAProcFilterDeinterlacing && filter->type != VAProcFilterSkinToneEnhancement && filter->type != VAProcFilterColorBalance) { - printf("Do not support multiply filters outside vebox pipeline \n"); + fprintf(stderr, "Do not support multiply filters outside vebox pipeline \n"); assert(0); } } diff --git a/src/intel_driver.h b/src/intel_driver.h index 37152109..3c20ce44 100644 --- a/src/intel_driver.h +++ b/src/intel_driver.h @@ -119,7 +119,7 @@ extern uint32_t g_intel_debug_option_flags; static int g_once = 1; \ if (g_once) { \ g_once = 0; \ - printf("WARNING: " __VA_ARGS__); \ + fprintf(stderr, "WARNING: " __VA_ARGS__); \ } \ } while (0) -- cgit v1.2.1