From 33429a037a687d6a2786edfbf6d5093bfec0b987 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 20 Oct 2010 18:12:19 +0200 Subject: Print subdev device node names in dot diagrams Signed-off-by: Laurent Pinchart --- media.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3