From 83d0df45745873f856c8a63bf4a86fec70559fca Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 1 Aug 2013 00:58:52 +0200 Subject: [PATCH] wip --- utils/media-ctl/media-ctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/media-ctl/media-ctl.c b/utils/media-ctl/media-ctl.c index 1996d99..36be7a5 100644 --- a/utils/media-ctl/media-ctl.c +++ b/utils/media-ctl/media-ctl.c @@ -353,6 +353,7 @@ static void media_print_topology_dot(struct media_device *media) break; case MEDIA_ENT_T_V4L2_SUBDEV: + default: printf("\tn%08x [label=\"{{", info->id); for (j = 0, npads = 0; j < info->pads; ++j) { @@ -380,11 +381,10 @@ static void media_print_topology_dot(struct media_device *media) npads++; } - printf("}}\", shape=Mrecord, style=filled, fillcolor=green]\n"); + printf("}}\", shape=Mrecord, style=filled, fillcolor=%s]\n", + media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV + ? "green" : "blue"); break; - - default: - continue; } for (j = 0; j < num_links; j++) { -- 2.7.4