diff --git a/passes/cmds/logcmd.cc b/passes/cmds/logcmd.cc index 3b82ac48c..52f6b1e31 100644 --- a/passes/cmds/logcmd.cc +++ b/passes/cmds/logcmd.cc @@ -97,6 +97,9 @@ struct LogPass : public Pass { text += args[argidx] + ' '; if (!text.empty()) text.resize(text.size()-1); + if (text[0] == '"' && text[text.size()-1] == '"') + text = text.substr(1, text.size()-2); + const char *fmtline = newline ? "%s\n" : "%s"; if (to_stdout) fprintf(stdout, fmtline, text.c_str());