[media] media: Correctly notify about the failed pipeline validation
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 12 Feb 2015 13:43:11 +0000 (11:43 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 16 Aug 2015 16:20:15 +0000 (13:20 -0300)
On the place of the source entity name, the sink entity name was printed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c

index 4d8e01c7b1b2044d9628d6e94cff8373e2d804dc..153a4646981400f05d60bddc658bd43a5a0f6ff3 100644 (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;
                        }
                }