Everywhere: Remove accidental '\n' from various outln() invocations

Also convert outln(stderr, ...) to warnln(...)
This commit is contained in:
Andreas Kling 2021-06-03 22:49:37 +02:00
parent 43e7181ec8
commit bf8fd4c193
Notes: sideshowbarker 2024-07-18 16:56:37 +09:00
4 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ static bool handle_backtrace_command(const PtraceRegisters& regs)
{
auto ebp_val = regs.ebp;
auto eip_val = regs.eip;
outln("Backtrace:\n");
outln("Backtrace:");
while (g_debug_session->peek((u32*)eip_val).has_value() && g_debug_session->peek((u32*)ebp_val).has_value()) {
auto eip_symbol = g_debug_session->symbolicate(eip_val);
auto source_position = g_debug_session->get_source_position(eip_val);

View file

@ -48,7 +48,7 @@ int main(int argc, char** argv)
int status;
if (g_pid == -1) {
if (child_argv.is_empty()) {
outln(stderr, "strace: Expected either a pid or some arguments\n");
warnln("strace: Expected either a pid or some arguments");
return 1;
}

View file

@ -1158,7 +1158,7 @@ void FunctionNode::dump(int indent, const String& class_name) const
outln("{} '{}'", class_name, name());
if (!m_parameters.is_empty()) {
print_indent(indent + 1);
outln("(Parameters)\n");
outln("(Parameters)");
for (auto& parameter : m_parameters) {
print_indent(indent + 2);

View file

@ -68,7 +68,7 @@ int main(int argc, char** argv)
int status;
if (g_pid == -1) {
if (child_argv.is_empty()) {
outln(stderr, "strace: Expected either a pid or some arguments\n");
warnln("strace: Expected either a pid or some arguments");
return 1;
}