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: make link debug printk more generic
Remove entity name from the link as this exists only if the object type is PAD on both link ends. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
4b8a3c0859
commit
3c0e266fba
1 changed files with 5 additions and 7 deletions
|
@ -94,16 +94,14 @@ static void dev_dbg_obj(const char *event_name, struct media_gobj *gobj)
|
|||
struct media_link *link = gobj_to_link(gobj);
|
||||
|
||||
dev_dbg(gobj->mdev->dev,
|
||||
"%s: id 0x%08x link#%d: '%s' %s#%d ==> '%s' %s#%d\n",
|
||||
"%s: id 0x%08x link#%d: %s#%d ==> %s#%d\n",
|
||||
event_name, gobj->id, media_localid(gobj),
|
||||
|
||||
link->source->entity->name,
|
||||
gobj_type(media_type(&link->source->graph_obj)),
|
||||
media_localid(&link->source->graph_obj),
|
||||
gobj_type(media_type(link->gobj0)),
|
||||
media_localid(link->gobj0),
|
||||
|
||||
link->sink->entity->name,
|
||||
gobj_type(media_type(&link->sink->graph_obj)),
|
||||
media_localid(&link->sink->graph_obj));
|
||||
gobj_type(media_type(link->gobj1)),
|
||||
media_localid(link->gobj1));
|
||||
break;
|
||||
}
|
||||
case MEDIA_GRAPH_PAD:
|
||||
|
|
Loading…
Reference in a new issue