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 <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-04-20 17:59:51 -07:00 committed by Liam Girdwood
parent 0f0dd1d7ab
commit 30719babb4
1 changed files with 2 additions and 0 deletions

View File

@ -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);