Skip to content

Commit

Permalink
Print --verbose-tree to right output stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Jul 18, 2021
1 parent c6cda17 commit 25000e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/json/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ JsonTree parse(futhark_context* ctx, const std::string& input, bool verbose_tree
});

if (verbose_tree) {
fmt::print("Initial nodes: {}\n", node_types.shape()[0]);
fmt::print(std::cerr, "Initial nodes: {}\n", node_types.shape()[0]);
}

debug_log_region("restructure");
Expand Down Expand Up @@ -364,7 +364,7 @@ JsonTree parse(futhark_context* ctx, const std::string& input, bool verbose_tree
throw futhark::Error(ctx);

if (verbose_tree) {
fmt::print("Nodes: {}\n", num_nodes);
fmt::print(std::cerr, "Nodes: {}\n", num_nodes);
}

return ast;
Expand Down

0 comments on commit 25000e9

Please sign in to comment.