summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-21 16:38:55 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-05-21 16:38:55 +0200
commit293ec4a8813e6d7d68dc147dff102d3a61396515 (patch)
tree3eef8b74bd68bde1258d27123a44e42e74f9ad51 /main.c
parent23a9a40c33d284ee280b330b1ced9a7b6bcffd89 (diff)
Add --print-dot option to print topology as a dot graph
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index fad538d..164d4e5 100644
--- a/main.c
+++ b/main.c
@@ -363,8 +363,8 @@ int main(int argc, char **argv)
printf("Entity '%s' not found\n", media_opts.entity);
}
- if (media_opts.print) {
- media_print_topology(media);
+ if (media_opts.print || media_opts.print_dot) {
+ media_print_topology(media, media_opts.print_dot);
printf("\n");
}