Merge branch 'fix-trace' into 'master'
Fix trace feature See merge request redox-os/relibc!686
This commit is contained in:
+1
-3
@@ -82,7 +82,6 @@ impl Tcb {
|
||||
let (_abi_page, tls, tcb_page) = Self::os_new(size.next_multiple_of(page_size))?;
|
||||
|
||||
let tcb_ptr = tcb_page.as_mut_ptr() as *mut Self;
|
||||
trace!("New TCB: {:p}", tcb_ptr);
|
||||
ptr::write(
|
||||
tcb_ptr,
|
||||
Self {
|
||||
@@ -164,8 +163,7 @@ impl Tcb {
|
||||
if let Some(tls_data) = tls.get_mut(range) {
|
||||
let data = master.data();
|
||||
trace!(
|
||||
"tls master {}: {:p}, {:#x}: {:p}, {:#x}",
|
||||
i,
|
||||
"tls master: {:p}, {:#x}: {:p}, {:#x}",
|
||||
data.as_ptr(),
|
||||
data.len(),
|
||||
tls_data.as_mut_ptr(),
|
||||
|
||||
@@ -74,7 +74,6 @@ macro_rules! trace {
|
||||
#[cfg(feature = "trace")]
|
||||
macro_rules! trace {
|
||||
($($arg:tt)*) => ({
|
||||
use $crate::{Pal, Sys};
|
||||
eprintln!($($arg)*);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user