Ensure that both of the error messages get to the same standard stream. Signed-off-by: Cristina Opriceana <cristina.oprice...@gmail.com> --- tools/iio/generic_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c index af350cc..ac9b954 100644 --- a/tools/iio/generic_buffer.c +++ b/tools/iio/generic_buffer.c @@ -325,7 +325,7 @@ int main(int argc, char **argv) ret = build_channel_array(dev_dir_name, &channels, &num_channels); if (ret) { fprintf(stderr, "Problem reading scan element information\n"); - printf("diag %s\n", dev_dir_name); + fprintf(stderr, "diag %s\n", dev_dir_name); goto error_free_triggername; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/