summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-08-08 21:00:57 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-03-25 22:49:18 +0100
commit88c1d54e9e9950ef3b8b2ac7a9752493c46dd5e4 (patch)
treec0a32c69ff083a7dbb679bfb6c7ba23be496197f /src
parent0c5771c897487061be6847513a0614af423cd979 (diff)
Print media entity flags when printing device topology
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
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);