From cb3775b2906d14cdd0a5eb31742f372c588e37c4 Mon Sep 17 00:00:00 2001 From: unzner Date: Thu, 1 Nov 2012 13:28:52 +0000 Subject: [PATCH] Ensuring parsability in case of exceptions by removing unnecessary newline characters git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1874 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/experiments/l4-sys/experiment.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/experiments/l4-sys/experiment.cc b/src/experiments/l4-sys/experiment.cc index 2250bffe..5e3ef921 100644 --- a/src/experiments/l4-sys/experiment.cc +++ b/src/experiments/l4-sys/experiment.cc @@ -334,8 +334,8 @@ bool L4SysExperiment::run() { if (injection_ip != curr_instr.trigger_addr) { stringstream ss; ss << "SANITY CHECK FAILED: " << injection_ip << " != " - << curr_instr.trigger_addr << endl; - log << ss.str(); + << curr_instr.trigger_addr; + log << ss.str() << endl; param.msg.set_resulttype(param.msg.UNKNOWN); param.msg.set_resultdata(injection_ip); param.msg.set_details(ss.str()); @@ -355,7 +355,7 @@ bool L4SysExperiment::run() { param.msg.set_output(sanitised(output.c_str())); stringstream ss; - ss << "Sent package did not contain the injection location (register offset)" << endl; + ss << "Sent package did not contain the injection location (register offset)"; param.msg.set_details(ss.str()); m_jc.sendResult(param); simulator.terminate(30); @@ -423,7 +423,7 @@ bool L4SysExperiment::run() { param.msg.set_output(sanitised(output.c_str())); stringstream ss; - ss << "Could not decode instruction using UDIS86" << endl; + ss << "Could not decode instruction using UDIS86"; param.msg.set_details(ss.str()); m_jc.sendResult(param); simulator.terminate(32); @@ -485,7 +485,7 @@ bool L4SysExperiment::run() { param.msg.set_output(sanitised(output.c_str())); stringstream ss; - ss << "Reached the end of the experiment without finding an appropriate instruction" << endl; + ss << "Reached the end of the experiment without finding an appropriate instruction"; param.msg.set_details(ss.str()); m_jc.sendResult(param); simulator.terminate(33); @@ -565,7 +565,7 @@ bool L4SysExperiment::run() { param.msg.set_output(sanitised(output.c_str())); stringstream ss; - ss << "Reached the end of the experiment without finding an appropriate instruction" << endl; + ss << "Reached the end of the experiment without finding an appropriate instruction"; param.msg.set_details(ss.str()); m_jc.sendResult(param); simulator.terminate(33); @@ -586,7 +586,7 @@ bool L4SysExperiment::run() { param.msg.set_output(sanitised(output.c_str())); ostringstream oss; - oss << "Did not hit an ALU instruction - correct the source code please!" << endl; + oss << "Did not hit an ALU instruction - correct the source code please!"; param.msg.set_details(oss.str()); m_jc.sendResult(param); simulator.terminate(40); @@ -650,8 +650,7 @@ bool L4SysExperiment::run() { stringstream ss; ss << "eventid " << ev << " EIP " - << simulator.getRegisterManager().getInstructionPointer() - << endl; + << simulator.getRegisterManager().getInstructionPointer(); param.msg.set_details(ss.str()); }