[media] media: report if a pad is sink or source at debug msg
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Aug 2015 21:26:42 +0000 (18:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:52 +0000 (12:18 -0200)
Sometimes, it is important to see if the created pad is
sink or source. Add info to track that.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c

index 8449274bb50c97e2b87d4fbc809bc9ef001f0ab6..5697735be433e1e91bb68a86ab16a5abda40ad74 100644 (file)
@@ -109,8 +109,11 @@ static void dev_dbg_obj(const char *event_name,  struct media_gobj *gobj)
                struct media_pad *pad = gobj_to_pad(gobj);
 
                dev_dbg(gobj->mdev->dev,
-                       "%s: id 0x%08x pad#%d: '%s':%d\n",
-                       event_name, gobj->id, media_localid(gobj),
+                       "%s: id 0x%08x %s%spad#%d: '%s':%d\n",
+                       event_name, gobj->id,
+                       pad->flags & MEDIA_PAD_FL_SINK   ? "  sink " : "",
+                       pad->flags & MEDIA_PAD_FL_SOURCE ? "source " : "",
+                       media_localid(gobj),
                        pad->entity->name, pad->index);
                break;
        }
This page took 0.024687 seconds and 5 git commands to generate.