media: omap3isp: Print the name of the entity where no source pads could be found
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 1 Sep 2017 23:43:31 +0000 (19:43 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 17:50:13 +0000 (13:50 -0400)
If no source pads are found in an entity, print the name of the entity.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/omap3isp/isp.c

index 4afd7ba4fad6a28b5dde34169439bbb3ea88a711..35687c9707e00b729569077f1fd7ae31ce31af1c 100644 (file)
@@ -1669,8 +1669,8 @@ static int isp_link_entity(
                        break;
        }
        if (i == entity->num_pads) {
-               dev_err(isp->dev, "%s: no source pad in external entity\n",
-                       __func__);
+               dev_err(isp->dev, "%s: no source pad in external entity %s\n",
+                       __func__, entity->name);
                return -EINVAL;
        }