trace: ipc: pipeline: Make error logs more detailed in ipc_pipeline_new()

It's not obvious that icd refers to pipeline scheduling component,
so added this information to log message. By the way, scheduling
component id has been printed.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-10-12 09:43:03 +02:00 committed by Liam Girdwood
parent 0ed7023861
commit b1d0fd7e64
1 changed files with 4 additions and 2 deletions

View File

@ -463,12 +463,14 @@ int ipc_pipeline_new(struct ipc *ipc,
}
if (icd->type != COMP_TYPE_COMPONENT) {
tr_err(&ipc_tr, "ipc_pipeline_new(): icd->type != COMP_TYPE_COMPONENT");
tr_err(&ipc_tr, "ipc_pipeline_new(): icd->type (%d) != COMP_TYPE_COMPONENT for pipeline scheduling component icd->id %d",
icd->type, icd->id);
return -EINVAL;
}
if (icd->core != pipe_desc->core) {
tr_err(&ipc_tr, "ipc_pipeline_new(): icd->core != pipe_desc->core");
tr_err(&ipc_tr, "ipc_pipeline_new(): icd->core (%d) != pipe_desc->core (%d) for pipeline scheduling component icd->id %d",
icd->core, pipe_desc->core, icd->id);
return -EINVAL;
}