From e6f0e8ef7594ec0f7bc77edce88dfd33a95c655e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 6 Jun 2015 11:54:48 +0100 Subject: Move write_debug to buffer utils as write_to_debug_buffer --- src/shell_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell_manager.cc') diff --git a/src/shell_manager.cc b/src/shell_manager.cc index a7dae6cb..ce926ecb 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -1,7 +1,7 @@ #include "shell_manager.hh" #include "context.hh" -#include "debug.hh" +#include "buffer_utils.hh" #include "event_manager.hh" #include "file.hh" @@ -63,7 +63,7 @@ std::pair ShellManager::eval( } if (not child_stderr.empty()) - write_debug("shell stderr: <<<\n" + child_stderr + ">>>"); + write_to_debug_buffer(format("shell stderr: <<<\n{}>>>", child_stderr)); int status = 0; waitpid(pid, &status, 0); -- cgit v1.2.3