From e1de5c1ee28f4186d2adb9383041695ea018600d Mon Sep 17 00:00:00 2001 From: Seong Jin Kim Date: Thu, 3 Aug 2023 03:05:10 +0900 Subject: [PATCH] dump: Fix Mermaid to work by specifying the version of Mermaid After Mermaid v10, the function 'mermaid.render' does not support callback, but only supports async operation. Due to this change, an issue has arisen where JavaScript in the HTML document created via the 'uftrace dump --mermaid' command fails to function as expected. This commit fixed the Mermaid to work by temporarily specifying the version of Mermaid as v9. Fixed: #1793 Signed-off-by: Seong Jin Kim --- cmds/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/dump.c b/cmds/dump.c index d7faaa859..26fecd346 100644 --- a/cmds/dump.c +++ b/cmds/dump.c @@ -1354,7 +1354,7 @@ static void dump_mermaid_footer(struct uftrace_dump_ops *ops, struct uftrace_dat pr_out("flowchart TB\n"); print_graph_node_mermaid(&mermaid_graph, &mermaid_graph.root); pr_out("\n"); - pr_out("\n"); + pr_out("\n"); pr_out("