From 40cc7566420f460d73e5750848f6925e1459f549 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 2 Jul 2010 18:16:05 +0200 Subject: Print video device node names in dot diagrams Signed-off-by: Laurent Pinchart --- media.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'media.c') diff --git a/media.c b/media.c index 25e2a96..05fc76c 100644 --- a/media.c +++ b/media.c @@ -253,9 +253,9 @@ static void media_print_topology_dot(struct media_device *media) switch (entity->info.type) { case MEDIA_ENTITY_TYPE_NODE: - printf("\tn%08x [label=\"%s\", shape=box, style=filled, " + printf("\tn%08x [label=\"%s\\n%s\", shape=box, style=filled, " "fillcolor=yellow]\n", - entity->info.id, entity->info.name); + entity->info.id, entity->info.name, entity->devname); break; case MEDIA_ENTITY_TYPE_SUBDEV: @@ -329,7 +329,7 @@ static void media_print_topology_text(struct media_device *media) printf("%*ctype %s subtype %s\n", padding, ' ', media_entity_type_to_string(entity->info.type), media_entity_subtype_to_string(entity->info.type, entity->info.subtype)); - if (entity->devname) + if (entity->devname[0]) printf("%*cdevice node name %s\n", padding, ' ', entity->devname); for (j = 0; j < entity->info.pads; j++) { -- cgit v1.2.3