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
1279 r.request_mutex.pending_request = false;1279 r.request_mutex.pending_request = false;
1280 1280
1281 if (debug::is_component_tracing_enabled<debug::component_trace_t::channel>())1281 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");
1283 1283
1284 // Cancel request in all channels.1284 // Cancel request in all channels.
1285 for (auto i = word_t{ 0 }; i < channel_count; ++i)1285 for (auto i = word_t{ 0 }; i < channel_count; ++i)
@@ -1471,7 +1471,7 @@ namespace · 185 unmodified lines
1471 r.current_thread_state = vm_thread_state_t::empty_stack;1471 r.current_thread_state = vm_thread_state_t::empty_stack;
1472 1472
1473 if (debug::is_component_tracing_enabled<debug::component_trace_t::stack>())1473 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");
1475 }1475 }
1476 1476
1477 EXEC_DECL(call)1477 EXEC_DECL(call)
@@ -1488,7 +1488,7 @@ namespace · 10 unmodified lines
1488 1488
1489 r.pc = vt_ref<vm_pc_t>(r.dest);1489 r.pc = vt_ref<vm_pc_t>(r.dest);
1490 1490
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");
1492 }1492 }
1493 1493
1494 EXEC_DECL(mcall)1494 EXEC_DECL(mcall)
@@ -1522,7 +1522,7 @@ namespace · 27 unmodified lines
1522 debug::log_msg(1522 debug::log_msg(
1523 debug::component_trace_t::stack,1523 debug::component_trace_t::stack,
1524 debug::log_level_t::debug,1524 debug::log_level_t::debug,
1525 "enter: function: inter-module: %d >>%s<< %d %s\n",1525 "enter: function: inter-module: %d >>%s<< %d %s",
1526 export_id,1526 export_id,
1527 target_module->module->module_name->str(),1527 target_module->module->module_name->str(),
1528 function_pc,1528 function_pc,
@@ -1649,7 +1649,7 @@ namespace · 120 unmodified lines
1649 exception_id = static_cast<vm_string_t *>(e);1649 exception_id = static_cast<vm_string_t *>(e);
1650 1650
1651 if (debug::is_component_tracing_enabled<debug::component_trace_t::exception>())1651 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());
1653 }1653 }
1654 else1654 else
1655 {1655 {
@@ -1661,7 +1661,7 @@ namespace · 5 unmodified lines
1661 exception_id = at_val<vm_string_t>(content);1661 exception_id = at_val<vm_string_t>(content);
1662 1662
1663 if (debug::is_component_tracing_enabled<debug::component_trace_t::exception>())1663 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());
1665 }1665 }
1666 1666
1667 // Check if the tool dispatcher has been supplied1667 // Check if the tool dispatcher has been supplied
@@ -1772,7 +1772,7 @@ namespace · 104 unmodified lines
1772 }1772 }
1773 catch (const vm_module_exception &e)1773 catch (const vm_module_exception &e)
1774 {1774 {
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());
1776 assert(false && "Failure reading module");1776 assert(false && "Failure reading module");
1777 return;1777 return;
1778 }1778 }