[media] media: Correctly notify about the failed pipeline validation

On the place of the source entity name, the sink entity name was printed.

Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Sakari Ailus 2015-02-12 11:43:11 -02:00 • committed by Mauro Carvalho Chehab
commit 823ea2a639

View file

@ -282,9 +282,9 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
if (ret < 0 && ret != -ENOIOCTLCMD) {
dev_dbg(entity->parent->dev,
"link validation failed for \"%s\":%u -> \"%s\":%u, error %d\n",
entity->name, link->source->index,
link->sink->entity->name,
link->sink->index, ret);
link->source->entity->name,
link->source->index,
entity->name, link->sink->index, ret);
goto error;
}
}