citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 073a810592a629becc6d612ec604779366b0e51d
parent cac06cceff31e44f852df06426f7d6a1a341332d
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun,  4 Dec 2016 19:55:38 -0700

src: delete unneeded logging line

Diffstat:
Msrc/inst_frontend.cc | 7+++----
Mt/inst_log.sh | 3+--
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/inst_frontend.cc b/src/inst_frontend.cc @@ -319,7 +319,7 @@ InstrumentFrontend::fork_compiler() // In child. exec_compiler(); - m_log << "Forked '" << m_args[0] << "' " + m_log << "Forked compiler '" << m_args[0] << "' " << "pid is '" << child_pid << "'" << std::endl; int status; @@ -331,9 +331,8 @@ InstrumentFrontend::fork_compiler() if (WIFEXITED(status)) exit = WEXITSTATUS(status); - m_log << "'" << child_pid << "' exited " << exit << std::endl; - m_log << "Rewritten source compile " - << (exit ? "failed." : "successful.") << std::endl; + << (exit ? "failed" : "successful") << std::endl; + return exit; } diff --git a/t/inst_log.sh b/t/inst_log.sh @@ -56,8 +56,7 @@ Instrumentation of '' finished: 6 Binary operators Modified source written successfully. Rewriting successful. -Forked '' -'' exited 0 +Forked compiler '' Rewritten source compile successful. Restored '' citrun-inst 0.0 () ''