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-09 12:51:30 +0800
commit7ea949e859e4c4d12acb352b4729165e87b72c57 (patch)
tree3542af31e27e80fe6e1fa02c93a75232e01d295f
parente08eddd582b0fde7e25fffe5478c0a3dea82ea95 (diff)
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> (cherry picked from commit d5da9bba31a85a61fc683f202e21cf1ea81215bd)
-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 d64ef05..cf20ed9 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 3715210..3c20ce4 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)