Print subdev device node names in dot diagrams
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 20 Oct 2010 16:12:19 +0000 (18:12 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 20 Oct 2010 16:12:19 +0000 (18:12 +0200)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
media.c

diff --git a/media.c b/media.c
index 1bc39e1..f384026 100644 (file)
--- a/media.c
+++ b/media.c
@@ -269,7 +269,10 @@ static void media_print_topology_dot(struct media_device *media)
                                npads++;
                        }
 
-                       printf("} | %s | {", entity->info.name);
+                       printf("} | %s", entity->info.name);
+                       if (entity->devname)
+                               printf("\\n%s", entity->devname);
+                       printf(" | {");
 
                        for (j = 0, npads = 0; j < entity->info.pads; ++j) {
                                if (entity->pads[j].type != MEDIA_PAD_TYPE_OUTPUT)