Skip to content

Commit 7aba70b

Browse files
authored
Merge pull request #2101 from lslusarczyk/fix-interleaved-urtraces
Fix mixed output of adapter and regular traces
2 parents 1f13d2c + cf5994a commit 7aba70b

File tree

3 files changed

+599
-574
lines changed

3 files changed

+599
-574
lines changed

scripts/templates/trcddi.cpp.mako

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ namespace ur_tracing_layer
4646
uint64_t instance = getContext()->notify_begin(${th.make_func_etor(n, tags, obj)}, "${th.make_func_name(n, tags, obj)}", &params);
4747

4848
auto &logger = getContext()->logger;
49-
50-
logger.info("---> ${th.make_func_name(n, tags, obj)}");
49+
logger.info(" ---> ${th.make_func_name(n, tags, obj)}\n");
5150

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

@@ -56,7 +55,7 @@ namespace ur_tracing_layer
5655
if (logger.getLevel() <= logger::Level::INFO) {
5756
std::ostringstream args_str;
5857
ur::extras::printFunctionParams(args_str, ${th.make_func_etor(n, tags, obj)}, &params);
59-
logger.info("({}) -> {};\n", args_str.str(), result);
58+
logger.info(" <--- ${th.make_func_name(n, tags, obj)}({}) -> {};\n", args_str.str(), result);
6059
}
6160

6261
return result;

0 commit comments

Comments
 (0)