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>
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;
}