quiet down hosted mode debug messages

This commit is contained in:
bunnie 2022-03-28 14:44:05 +08:00
parent 83da511dc5
commit 64ad28cb18

View file

@ -210,10 +210,10 @@ pub(crate) fn thread_id() -> TID {
let call = crate::SysCall::CreateThread(ThreadInit {}); let call = crate::SysCall::CreateThread(ThreadInit {});
let fake_tid = FAKE_THREAD_COUNTER.fetch_add(1, Ordering::SeqCst); let fake_tid = FAKE_THREAD_COUNTER.fetch_add(1, Ordering::SeqCst);
println!( // println!(
"Thread ID not defined! Creating a fake thread. Syscall TID: {}.", // "Thread ID not defined! Creating a fake thread. Syscall TID: {}.",
fake_tid // fake_tid
); // );
// assert!(SERVER_CONNECTION // assert!(SERVER_CONNECTION
// .call_tracker // .call_tracker
@ -236,7 +236,7 @@ pub(crate) fn thread_id() -> TID {
} else { } else {
panic!("unable to get new TID, got response: {:?}", response) panic!("unable to get new TID, got response: {:?}", response)
}; };
println!("Created a fake thread ID: {}", new_tid); // println!("Created a fake thread ID: {}", new_tid);
*tid.borrow_mut() = Some(new_tid); *tid.borrow_mut() = Some(new_tid);
new_tid new_tid
}) })