Skip to content

Commit 6c7e3ac

Browse files
committed
tools: reword SMLPC to just LPC
The "shared" part is redundant.
1 parent e7dcc14 commit 6c7e3ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/exmidl.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
if ($gen_mode eq "SDP") {
2222
print "extern unsigned int g_exrpc_debug;\n";
2323
print "unsigned int g_exrpc_debug;\n\n";
24-
print "static void smlpc_log(bool ok, const char *dir, const char *func, gromox::time_point tstart, gromox::time_point tend)\n{\n";
24+
print "static void lpc_log(bool ok, const char *dir, const char *func, gromox::time_point tstart, gromox::time_point tend)\n{\n";
2525
print "\tif (g_exrpc_debug >= 2 || (!ok && g_exrpc_debug == 1))\n";
26-
print "\t\tmlog(LV_DEBUG, \"SMLPC %s %s \%5luµs \%s\", dir, !ok ? \"ERR\" : \"ok \",\n";
26+
print "\t\tmlog(LV_DEBUG, \"LPC %s %s \%5luµs \%s\", dir, !ok ? \"ERR\" : \"ok \",\n";
2727
print "\t\t\tstatic_cast<unsigned long>(std::chrono::duration_cast<std::chrono::microseconds>(tend - tstart).count()), func);\n";
2828
print "}\n\n";
2929
}
@@ -49,7 +49,7 @@
4949
print "\tauto tstart = gromox::tp_now();\n";
5050
print "\texmdb_server::build_env(EM_LOCAL | (xb_private ? EM_PRIVATE : 0), dir);\n";
5151
print "\tauto xbresult = exmdb_server::$func(".join(", ", @anames).");\n";
52-
print "\tsmlpc_log(xbresult, dir, \"$func\", tstart, gromox::tp_now());\n";
52+
print "\tlpc_log(xbresult, dir, \"$func\", tstart, gromox::tp_now());\n";
5353
print "\texmdb_server::free_env();\n";
5454
print "\treturn xbresult;\n";
5555
print "}\n\n";

0 commit comments

Comments
 (0)