Skip to content
Snippets Groups Projects
Commit d0a26b08 authored by Nick Zavaritsky's avatar Nick Zavaritsky
Browse files

Ommit trailing colon in the process title if custom_proc_title not set

parent 1c493348
No related branches found
No related tags found
No related merge requests found
......@@ -111,15 +111,15 @@ void title_update()
assert(part1);
if (part2) {
if (part3) {
rc = OUTPUT("%s %s <%s>:", part1, part2, part3);
rc = OUTPUT("%s %s <%s>", part1, part2, part3);
} else {
rc = OUTPUT("%s %s:", part1, part2);
rc = OUTPUT("%s %s", part1, part2);
}
} else {
if (part3) {
rc = OUTPUT("%s <%s>:", part1, part3);
rc = OUTPUT("%s <%s>", part1, part3);
} else {
rc = OUTPUT("%s:", part1);
rc = OUTPUT("%s", part1);
}
}
if (rc < 0 || (output += rc) >= output_end)
......@@ -129,7 +129,7 @@ void title_update()
* custom title
*/
if (custom) {
rc = OUTPUT(" %s", custom);
rc = OUTPUT(": %s", custom);
if (rc < 0 || (output += rc) >= output_end)
goto done;
}
......
......@@ -42,9 +42,9 @@
*
* Parts missing:
*
* 1) no custom title (note the trailing colon - its intentional)
* 1) no custom title
*
* tarantool script.lua <running>:
* tarantool script.lua <running>
*
* 2) script name missing
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment