mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
[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>
This commit is contained in:
parent
df2f94e563
commit
6c24d4602e
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
struct media_pad *pad = gobj_to_pad(gobj);
|
||||||
|
|
||||||
dev_dbg(gobj->mdev->dev,
|
dev_dbg(gobj->mdev->dev,
|
||||||
"%s: id 0x%08x pad#%d: '%s':%d\n",
|
"%s: id 0x%08x %s%spad#%d: '%s':%d\n",
|
||||||
event_name, gobj->id, media_localid(gobj),
|
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);
|
pad->entity->name, pad->index);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue