From 88c1d54e9e9950ef3b8b2ac7a9752493c46dd5e4 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 8 Aug 2012 21:00:57 +0200 Subject: Print media entity flags when printing device topology Signed-off-by: Laurent Pinchart --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 13a458d..2345255 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- cgit v1.2.3