Skip to content

Commit 050082e

Browse files
committed
fixed interleaved logs generator
1 parent 4517290 commit 050082e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/templates/trcddi.cpp.mako

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ namespace ur_tracing_layer
4545
${th.make_pfncb_param_type(n, tags, obj)} params = { &${",&".join(th.make_param_lines(n, tags, obj, format=["name"]))} };
4646
uint64_t instance = getContext()->notify_begin(${th.make_func_etor(n, tags, obj)}, "${th.make_func_name(n, tags, obj)}", &params);
4747

48-
getContext()->logger.info("---> ${th.make_func_name(n, tags, obj)}");
48+
std::ostringstream args_str;
49+
ur::extras::printFunctionParams(args_str, ${th.make_func_etor(n, tags, obj)}, &params);
50+
51+
getContext()->logger.info(" ---> ${th.make_func_name(n, tags, obj)}({})\n", args_str.str());
4952

5053
${x}_result_t result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} );
5154

5255
getContext()->notify_end(${th.make_func_etor(n, tags, obj)}, "${th.make_func_name(n, tags, obj)}", &params, &result, instance);
5356

54-
std::ostringstream args_str;
55-
ur::extras::printFunctionParams(args_str, ${th.make_func_etor(n, tags, obj)}, &params);
56-
getContext()->logger.info("({}) -> {};\n", args_str.str(), result);
57+
getContext()->logger.info(" <--- ${th.make_func_name(n, tags, obj)}({}) -> {};\n", args_str.str(), result);
5758

5859
return result;
5960
}

0 commit comments

Comments
 (0)