Use in macro.
This commit is contained in:
parent
3eea4d811a
commit
ccd13fecf1
|
@ -146,9 +146,7 @@ macro_rules! debug {
|
|||
($fmt:literal, $($val:expr),+) => {{
|
||||
use core::fmt::Write as _;
|
||||
use alloc::string::String;
|
||||
// TODO: Find a way to do this so we don't have to import writer.
|
||||
// We can't fully qualify this if we want to use it in this crate.
|
||||
let mut w = Writer::new();
|
||||
let mut w = $crate::syscall::Writer::new();
|
||||
write!(&mut w, $fmt, $($val),*).expect("Failed to format");
|
||||
let s: String = w.into();
|
||||
debug(&s);
|
||||
|
|
|
@ -9,7 +9,6 @@ use mammoth::debug;
|
|||
use mammoth::define_entry;
|
||||
use mammoth::syscall::debug;
|
||||
use mammoth::syscall::z_err_t;
|
||||
use mammoth::syscall::Writer;
|
||||
|
||||
define_entry!();
|
||||
|
||||
|
|
Loading…
Reference in New Issue