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

Unified · Split

src/vm/sys/Sysmod.cpp+6−6
@@ -90,7 +90,7 @@ namespace · 89 unmodified lines
9090 debug::log_msg(
9191 debug::component_trace_t::builtin,
9292 debug::log_level_t::debug,
93− "sys: fd: finalize: %d\n",
93+ "sys: fd: finalize: %d",
9494 fd->fd);
9595 }
9696
@@ -236,21 +236,21 @@ Sysmodinit(void) · 139 unmodified lines
236236 auto vm_stdin = vm_alloc_t::allocate(T_FD);
237237 const auto fd = sys::create_fd_record(vm_stdin);
238238 fd_stdin = ::new(vm_stdin->get_allocation())vm_fd_t{ fd, std::cin };
239− debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stdin: %d\n", fd);
239+ debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stdin: %d", fd);
240240 }
241241
242242 {
243243 auto vm_stdout = vm_alloc_t::allocate(T_FD);
244244 const auto fd = sys::create_fd_record(vm_stdout);
245245 fd_stdout = ::new(vm_stdout->get_allocation())vm_fd_t{ fd, std::cout };
246− debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stdout: %d\n", fd);
246+ debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stdout: %d", fd);
247247 }
248248
249249 {
250250 auto vm_stderr = vm_alloc_t::allocate(T_FD);
251251 const auto fd = sys::create_fd_record(vm_stderr);
252252 fd_stderr = ::new(vm_stderr->get_allocation())vm_fd_t{ fd, std::cerr };
253− debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stderr: %d\n", fd);
253+ debug::log_msg(debug::component_trace_t::builtin, debug::log_level_t::debug, "sys: stderr: %d", fd);
254254 }
255255 }
256256
@@ -390,7 +390,7 @@ Sys_create(vm_registers_t &r, vm_t &vm) · 133 unmodified lines
390390 debug::log_msg(
391391 debug::component_trace_t::builtin,
392392 debug::log_level_t::debug,
393− "sys: create: %d >>%s<< %#x %#x\n",
393+ "sys: create: %d >>%s<< %#x %#x",
394394 fd,
395395 path->str(),
396396 fp.mode,
@@ -542,7 +542,7 @@ Sys_open(vm_registers_t &r, vm_t &vm) · 145 unmodified lines
542542 debug::log_msg(
543543 debug::component_trace_t::builtin,
544544 debug::log_level_t::debug,
545− "sys: open: %d >>%s<< %#x\n",
545+ "sys: open: %d >>%s<< %#x",
546546 fd,
547547 path->str(),
548548 fp.mode);