[media] media: make link debug printk more generic
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 21 Aug 2015 11:45:34 +0000 (08:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:47 +0000 (12:18 -0200)
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>
drivers/media/media-entity.c

index e7ee666834a21dc918e3c6689ad26de89a1af811..e22954d2acbd64dd957aa91ccc16fe0a1ec64481 100644 (file)
@@ -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: