From 3363426a6ba0a9b27302ec15cbf6c6e5af490a52 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 Jul 2019 15:27:13 +0200 Subject: [PATCH] Shell: Put failed command exit statuses in the debug output instead. It was kinda unpleasant to always see "So-and-so exited with status 123." --- Shell/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/main.cpp b/Shell/main.cpp index 056bcbdf5f..150d373618 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -499,7 +499,7 @@ static int run_command(const String& cmd) } if (WIFEXITED(wstatus)) { if (WEXITSTATUS(wstatus) != 0) - printf("Shell: %s(%d) exited with status %d\n", child.name.characters(), child.pid, WEXITSTATUS(wstatus)); + dbg() << "Shell: " << child.name << ":" << child.pid << " exited with status " << WEXITSTATUS(wstatus); if (i == 0) return_value = WEXITSTATUS(wstatus); } else if (WIFSTOPPED(wstatus)) {