summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Müller <michael@fds-team.de>2015-03-05 00:15:45 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2015-03-05 09:13:35 +0800
commitd5da9bba31a85a61fc683f202e21cf1ea81215bd (patch)
tree3542af31e27e80fe6e1fa02c93a75232e01d295f
parente8fde1cdaafb93c2b54d6092a728d099ad7cdd11 (diff)
downloadlibva-intel-driver-d5da9bba31a85a61fc683f202e21cf1ea81215bd.tar.gz
Do not print warnings on stdout
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 <michael@fds-team.de>
-rw-r--r--src/gen75_picture_process.c2
-rw-r--r--src/intel_driver.h2
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)