mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
20 lines
425 B
Rust
20 lines
425 B
Rust
use core::fmt::Arguments;
|
|
|
|
pub fn print(args: Arguments) {
|
|
crate::arch::console::print(args);
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! early_print {
|
|
($fmt: literal $(, $($arg: tt)+)?) => {
|
|
$crate::console::print(format_args!($fmt $(, $($arg)+)?))
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! early_println {
|
|
($fmt: literal $(, $($arg: tt)+)?) => {
|
|
$crate::console::print(format_args!(concat!($fmt, "\n") $(, $($arg)+)?))
|
|
}
|
|
}
|