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/execution_table.cpp (1 of 16 files). Show all

Unified · Split

src/vm/execution_table.cpp+7−7
@@ -1279,7 +1279,7 @@ namespace · 1278 unmodified lines
12791279 r.request_mutex.pending_request = false;
12801280
12811281 if (debug::is_component_tracing_enabled<debug::component_trace_t::channel>())
1282− debug::log_msg(debug::component_trace_t::channel, debug::log_level_t::debug, "alt: request: non-blocking\n");
1282+ debug::log_msg(debug::component_trace_t::channel, debug::log_level_t::debug, "alt: request: non-blocking");
12831283
12841284 // Cancel request in all channels.
12851285 for (auto i = word_t{ 0 }; i < channel_count; ++i)
@@ -1471,7 +1471,7 @@ namespace · 185 unmodified lines
14711471 r.current_thread_state = vm_thread_state_t::empty_stack;
14721472
14731473 if (debug::is_component_tracing_enabled<debug::component_trace_t::stack>())
1474− debug::log_msg(debug::component_trace_t::stack, debug::log_level_t::debug, "exit: function\n");
1474+ debug::log_msg(debug::component_trace_t::stack, debug::log_level_t::debug, "exit: function");
14751475 }
14761476
14771477 EXEC_DECL(call)
@@ -1488,7 +1488,7 @@ namespace · 10 unmodified lines
14881488
14891489 r.pc = vt_ref<vm_pc_t>(r.dest);
14901490
1491− debug::log_msg(debug::component_trace_t::stack, debug::log_level_t::debug, "enter: function\n");
1491+ debug::log_msg(debug::component_trace_t::stack, debug::log_level_t::debug, "enter: function");
14921492 }
14931493
14941494 EXEC_DECL(mcall)
@@ -1522,7 +1522,7 @@ namespace · 27 unmodified lines
15221522 debug::log_msg(
15231523 debug::component_trace_t::stack,
15241524 debug::log_level_t::debug,
1525− "enter: function: inter-module: %d >>%s<< %d %s\n",
1525+ "enter: function: inter-module: %d >>%s<< %d %s",
15261526 export_id,
15271527 target_module->module->module_name->str(),
15281528 function_pc,
@@ -1649,7 +1649,7 @@ namespace · 120 unmodified lines
16491649 exception_id = static_cast<vm_string_t *>(e);
16501650
16511651 if (debug::is_component_tracing_enabled<debug::component_trace_t::exception>())
1652− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "raise: string: >>%s<<\n", exception_id->str());
1652+ debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "raise: string: >>%s<<", exception_id->str());
16531653 }
16541654 else
16551655 {
@@ -1661,7 +1661,7 @@ namespace · 5 unmodified lines
16611661 exception_id = at_val<vm_string_t>(content);
16621662
16631663 if (debug::is_component_tracing_enabled<debug::component_trace_t::exception>())
1664− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "raise: exception: >>%s<<\n", exception_id->str());
1664+ debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "raise: exception: >>%s<<", exception_id->str());
16651665 }
16661666
16671667 // Check if the tool dispatcher has been supplied
@@ -1772,7 +1772,7 @@ namespace · 104 unmodified lines
17721772 }
17731773 catch (const vm_module_exception &e)
17741774 {
1775− debug::log_msg(debug::component_trace_t::module, debug::log_level_t::debug, "exception: load: >>%s<<\n", e.what());
1775+ debug::log_msg(debug::component_trace_t::module, debug::log_level_t::debug, "exception: load: >>%s<<", e.what());
17761776 assert(false && "Failure reading module");
17771777 return;
17781778 }