summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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");
}