diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-21 18:26:42 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:18:52 -0200 |
commit | 6c24d4602ebee64128f29944d776c19d4d53fb54 (patch) | |
tree | 20c92d0ae8d5567b95effc1f852bdf6eead38743 /drivers | |
parent | df2f94e563edcbcb4b8652d05a3789d03b395366 (diff) | |
download | linux-stable-6c24d4602ebee64128f29944d776c19d4d53fb54.tar.gz linux-stable-6c24d4602ebee64128f29944d776c19d4d53fb54.tar.bz2 linux-stable-6c24d4602ebee64128f29944d776c19d4d53fb54.zip |
[media] media: report if a pad is sink or source at debug msg
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/media-entity.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 8449274bb50c..5697735be433 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -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; } |