Print media entity flags when printing device topology
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 8 Aug 2012 19:00:57 +0000 (21:00 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 25 Mar 2013 21:49:18 +0000 (22:49 +0100)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
src/main.c

index 13a458d..2345255 100644 (file)
@@ -266,9 +266,10 @@ static void media_print_topology_text(struct media_device *media)
                printf("%s (%u pad%s, %u link%s)\n", entity->info.name,
                        entity->info.pads, entity->info.pads > 1 ? "s" : "",
                        entity->num_links, entity->num_links > 1 ? "s" : "");
-               printf("%*ctype %s subtype %s\n", padding, ' ',
+               printf("%*ctype %s subtype %s flags %x\n", padding, ' ',
                        media_entity_type_to_string(entity->info.type),
-                       media_entity_subtype_to_string(entity->info.type));
+                       media_entity_subtype_to_string(entity->info.type),
+                       entity->info.flags);
                if (entity->devname[0])
                        printf("%*cdevice node name %s\n", padding, ' ', entity->devname);