summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-10-20 18:12:19 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-10-20 18:12:19 +0200
commit33429a037a687d6a2786edfbf6d5093bfec0b987 (patch)
tree850481a2edd3e514956c728d1121f5b2256bd58b
parent68a9a12fcee22c41f576f1a489791786982cf27b (diff)
Print subdev device node names in dot diagrams
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--media.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/media.c b/media.c
index 1bc39e1..f384026 100644
--- 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)