Print status and warning messages to stderr

Also, fix warning!() to allow 0 arguments to match status!() and
println!().

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
Andrew Gunnerson
2023-09-18 16:45:48 -04:00
parent a4978aaac0
commit d7a46dcaaf
+2 -2
View File
@@ -14,13 +14,13 @@ pub mod ramdisk;
macro_rules! status {
($($arg:tt)*) => {
println!("\x1b[1m[*] {}\x1b[0m", format!($($arg)*))
eprintln!("\x1b[1m[*] {}\x1b[0m", format!($($arg)*))
}
}
macro_rules! warning {
($($arg:tt)*) => {
println!("\x1b[1;31m[WARNING] {}\x1b[0m", format!($($arg)+))
eprintln!("\x1b[1;31m[WARNING] {}\x1b[0m", format!($($arg)*))
}
}