From 82cf4e8ff4ad6fca5a8e8ae0cf3ad42111c48c91 Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Mon, 17 Aug 2015 14:40:35 +0300 Subject: [PATCH] Output error messages to stderr --- src/strategies/avx2/ipol-avx2.c | 2 +- src/strategies/generic/ipol-generic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategies/avx2/ipol-avx2.c b/src/strategies/avx2/ipol-avx2.c index 89bfb0f6..3eab1b8f 100644 --- a/src/strategies/avx2/ipol-avx2.c +++ b/src/strategies/avx2/ipol-avx2.c @@ -504,7 +504,7 @@ void get_extended_block_avx2(int xpos, int ypos, int mv_x, int mv_y, int off_x, if (sample_out_of_bounds){ out->buffer = MALLOC(kvz_pixel, (width + filter_size) * (width + filter_size)); if (!out->buffer){ - printf("Memory allocation failed!\n"); + fprintf(stderr, "Memory allocation failed!\n"); assert(0); } out->stride = width + filter_size; diff --git a/src/strategies/generic/ipol-generic.c b/src/strategies/generic/ipol-generic.c index 9aec84ea..82425106 100644 --- a/src/strategies/generic/ipol-generic.c +++ b/src/strategies/generic/ipol-generic.c @@ -505,7 +505,7 @@ void get_extended_block_generic(int xpos, int ypos, int mv_x, int mv_y, int off_ if (sample_out_of_bounds){ out->buffer = MALLOC(kvz_pixel, (width + filter_size) * (width + filter_size)); if (!out->buffer){ - printf("Memory allocation failed!\n"); + fprintf(stderr, "Memory allocation failed!\n"); assert(0); } out->stride = width + filter_size;