aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-12 19:13:02 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-12 19:13:02 -0200
commitcb7135aa81d482c88f7587590a9d2f8503831752 (patch)
treeefa2c944cfd2c2af67d2c554550a21657e1cb778
parentf9a4e6b9c7b6efc74638bf45ce832c5bf0afe66a (diff)
mc_nextgen_test: improve .dot output adding driver and bus
Show the bus and driver name at the GraphViz .dot output. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--contrib/test/mc_nextgen_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/test/mc_nextgen_test.c b/contrib/test/mc_nextgen_test.c
index 4d92ffa1..210044dd 100644
--- a/contrib/test/mc_nextgen_test.c
+++ b/contrib/test/mc_nextgen_test.c
@@ -838,9 +838,10 @@ static void media_show_graphviz(struct media_controller *mc)
printf("%s", DOT_HEADER);
if (mc->info.model[0])
- printf("\tlabelloc=\"t\"\n\tlabel=\"%s\"\n", mc->info.model);
+ printf("\tlabelloc=\"t\"\n\tlabel=\"%s\n driver:%s, bus: %s\n\"\n",
+ mc->info.model, mc->info.driver, mc->info.bus_info);
- media_open_ifname(&priv);
+ media_open_ifname(&priv);
for (i = 0; i < topo->num_interfaces; i++) {
struct media_v2_interface *intf = &interfaces[i];
char *devname;

Privacy Policy