From: Sakari Ailus Date: Thu, 12 Feb 2015 13:43:11 +0000 (-0200) Subject: [media] media: Correctly notify about the failed pipeline validation X-Git-Tag: firefly_0821_release~176^2~795^2~204 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=823ea2a639611f79a3b4d3daff5ff722316342e7;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 4d8e01c7b1b2..153a46469814 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -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; } }