From 30719babb4cfba4fa5945c5929d941a3a48844f2 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Tue, 20 Apr 2021 17:59:51 -0700 Subject: [PATCH] testbench: print error on failure to prepare We are capturing the error, we should log it, thank cppcheck for the find. Signed-off-by: Curtis Malainey --- tools/testbench/common_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testbench/common_test.c b/tools/testbench/common_test.c index 8e0701f2b..202804a38 100644 --- a/tools/testbench/common_test.c +++ b/tools/testbench/common_test.c @@ -83,6 +83,8 @@ int tb_pipeline_start(struct ipc *ipc, struct pipeline *p, /* Component prepare */ ret = pipeline_prepare(p, cd); + if (ret < 0) + printf("Warning: Failed prepare pipeline command.\n"); /* Start the pipeline */ ret = pipeline_trigger(p, cd, COMP_TRIGGER_START);