mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-11 07:40:10 +00:00
kernel: process: only print process inits when printing is enabled
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
e5003eee6d
commit
6e312ffc8a
1 changed files with 3 additions and 2 deletions
|
|
@ -299,9 +299,10 @@ impl Process {
|
|||
thread.registers[1] = thread_init.stack.as_ptr() as usize + thread_init.stack.len();
|
||||
thread.registers[9] = thread_init.arg.map(|x| x.get()).unwrap_or_default();
|
||||
|
||||
#[cfg(any(feature = "debug-print", feature = "print-panics"))]
|
||||
if pid != 1 {
|
||||
println!(
|
||||
"Initializing PID {} thread {} with entrypoint {:08x}, stack @ {:08x}, arg {:08x}",
|
||||
print!(
|
||||
" [initializing PID {} thread {} with entrypoint {:08x}, stack @ {:08x}, arg {:08x}]",
|
||||
pid, tid, thread.sepc, thread.registers[1], thread.registers[9],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue