History

Enable logging from exec for specific components. Remove trailing newlines from all existing logging calls.

arr committed 9 years ago

Commit dd0789c1 parent 3098fb816 files · +185 −112Browse files

Showing the changes to src/vm/thread.cpp (1 of 16 files). Show all

Unified · Split

src/vm/thread.cpp+5−5
@@ -34,7 +34,7 @@ namespace · 33 unmodified lines
3434 debug::log_msg(
3535 debug::component_trace_t::addressing,
3636 debug::log_level_t::debug,
37− "decode: registers: %d (%#" PRIxPTR " %#" PRIxPTR " %#" PRIxPTR ")\n",
37+ "decode: registers: %d (%#" PRIxPTR " %#" PRIxPTR " %#" PRIxPTR ")",
3838 inst.opcode,
3939 reg.src,
4040 reg.mid,
@@ -127,7 +127,7 @@ vm_thread_t::vm_thread_t( · 86 unmodified lines
127127 // Pushing the initial frame sets the FP register
128128 _registers.stack.push_frame();
129129
130− debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "init: vm thread: %d %d\n", _thread_id, _parent_thread_id);
130+ debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "init: vm thread: %d %d", _thread_id, _parent_thread_id);
131131 }
132132
133133 vm_thread_t::vm_thread_t(
@@ -157,13 +157,13 @@ vm_thread_t::vm_thread_t( · 23 unmodified lines
157157 current_frame->copy_frame_contents(initial_frame);
158158
159159 if (debug::is_component_tracing_enabled<debug::component_trace_t::thread>())
160− debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "init: vm thread: %d %d\n", _thread_id, _parent_thread_id);
160+ debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "init: vm thread: %d %d", _thread_id, _parent_thread_id);
161161 }
162162
163163 vm_thread_t::~vm_thread_t()
164164 {
165165 if (debug::is_component_tracing_enabled<debug::component_trace_t::thread>())
166− debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "destroy: vm thread: %d %d\n", _thread_id, _parent_thread_id);
166+ debug::log_msg(debug::component_trace_t::thread, debug::log_level_t::debug, "destroy: vm thread: %d %d", _thread_id, _parent_thread_id);
167167
168168 free_memory(_error_message);
169169 debug::assign_debug_pointer(&_error_message);
@@ -267,7 +267,7 @@ vm_thread_state_t vm_thread_t::execute(vm_t &vm, const uint32_t quanta) · 97 unmodified lines
267267 debug::log_msg(
268268 debug::component_trace_t::thread,
269269 debug::log_level_t::debug,
270− "status: vm thread: execute: %d %d %d %d\n",
270+ "status: vm thread: execute: %d %d %d %d",
271271 _thread_id,
272272 (quanta - _registers.current_thread_quanta),
273273 quanta,