Showing the changes to src/vm/sys/Sysmod.cpp (1 of 16 files). Show all
Unified · Split
| @@ -90,7 +90,7 @@ namespace · 89 unmodified lines | |||
| 90 | debug::log_msg( | 90 | debug::log_msg( |
| 91 | debug::component_trace_t::builtin, | 91 | debug::component_trace_t::builtin, |
| 92 | debug::log_level_t::debug, | 92 | debug::log_level_t::debug, |
| 93 | "sys: fd: finalize: %d\n", | 93 | "sys: fd: finalize: %d", |
| 94 | fd->fd); | 94 | fd->fd); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| @@ -236,21 +236,21 @@ Sysmodinit(void) · 139 unmodified lines | |||
| 236 | auto vm_stdin = vm_alloc_t::allocate(T_FD); | 236 | auto vm_stdin = vm_alloc_t::allocate(T_FD); |
| 237 | const auto fd = sys::create_fd_record(vm_stdin); | 237 | const auto fd = sys::create_fd_record(vm_stdin); |
| 238 | fd_stdin = ::new(vm_stdin->get_allocation())vm_fd_t{ fd, std::cin }; | 238 | 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); |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | { | 242 | { |
| 243 | auto vm_stdout = vm_alloc_t::allocate(T_FD); | 243 | auto vm_stdout = vm_alloc_t::allocate(T_FD); |
| 244 | const auto fd = sys::create_fd_record(vm_stdout); | 244 | const auto fd = sys::create_fd_record(vm_stdout); |
| 245 | fd_stdout = ::new(vm_stdout->get_allocation())vm_fd_t{ fd, std::cout }; | 245 | 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); |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | { | 249 | { |
| 250 | auto vm_stderr = vm_alloc_t::allocate(T_FD); | 250 | auto vm_stderr = vm_alloc_t::allocate(T_FD); |
| 251 | const auto fd = sys::create_fd_record(vm_stderr); | 251 | const auto fd = sys::create_fd_record(vm_stderr); |
| 252 | fd_stderr = ::new(vm_stderr->get_allocation())vm_fd_t{ fd, std::cerr }; | 252 | 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); |
| 254 | } | 254 | } |
| 255 | } | 255 | } |
| 256 | 256 | ||
| @@ -390,7 +390,7 @@ Sys_create(vm_registers_t &r, vm_t &vm) · 133 unmodified lines | |||
| 390 | debug::log_msg( | 390 | debug::log_msg( |
| 391 | debug::component_trace_t::builtin, | 391 | debug::component_trace_t::builtin, |
| 392 | debug::log_level_t::debug, | 392 | debug::log_level_t::debug, |
| 393 | "sys: create: %d >>%s<< %#x %#x\n", | 393 | "sys: create: %d >>%s<< %#x %#x", |
| 394 | fd, | 394 | fd, |
| 395 | path->str(), | 395 | path->str(), |
| 396 | fp.mode, | 396 | fp.mode, |
| @@ -542,7 +542,7 @@ Sys_open(vm_registers_t &r, vm_t &vm) · 145 unmodified lines | |||
| 542 | debug::log_msg( | 542 | debug::log_msg( |
| 543 | debug::component_trace_t::builtin, | 543 | debug::component_trace_t::builtin, |
| 544 | debug::log_level_t::debug, | 544 | debug::log_level_t::debug, |
| 545 | "sys: open: %d >>%s<< %#x\n", | 545 | "sys: open: %d >>%s<< %#x", |
| 546 | fd, | 546 | fd, |
| 547 | path->str(), | 547 | path->str(), |
| 548 | fp.mode); | 548 | fp.mode); |