wip
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 31 Jul 2013 22:58:52 +0000 (00:58 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 19 Jun 2014 07:43:15 +0000 (09:43 +0200)
utils/media-ctl/media-ctl.c

index 1996d99..36be7a5 100644 (file)
@@ -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++) {