Merge pull request #149 from chenxiaolong/stderr

Print status and warning messages to stderr
This commit is contained in:
Andrew Gunnerson
2023-09-18 17:16:56 -04:00
committed by GitHub
+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)*))
}
}