pw-dot: fix modules not being linked correctly

This fixes a regression caused by commit 0b5cdf3f
This commit is contained in:
Julian Bouzas 2024-02-09 10:54:21 -05:00
parent 02050ae812
commit 64eaaf27ab

View file

@ -498,7 +498,7 @@ static void draw_factory(struct global *g)
/* draw the arrow */ /* draw the arrow */
dot_data_add_string(dd, "factory_"); dot_data_add_string(dd, "factory_");
dot_data_add_uint32(dd, g->id); dot_data_add_uint32(dd, g->id);
dot_data_add_string(dd, " -> module_id"); dot_data_add_string(dd, " -> module_");
dot_data_add_uint32(dd, module_id); dot_data_add_uint32(dd, module_id);
dot_data_add_string(dd, " [style=dashed];\n"); dot_data_add_string(dd, " [style=dashed];\n");
} }
@ -518,7 +518,7 @@ static void draw_module(struct global *g)
dot_data_add_string(dd, " [shape=box style=filled fillcolor=lightgrey];\n"); dot_data_add_string(dd, " [shape=box style=filled fillcolor=lightgrey];\n");
/* draw the label header */ /* draw the label header */
dot_data_add_string(dd, "module_id"); dot_data_add_string(dd, "module_");
dot_data_add_uint32(dd, g->id); dot_data_add_uint32(dd, g->id);
dot_data_add_string(dd, " [label=\""); dot_data_add_string(dd, " [label=\"");