mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
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:
@@ -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)*))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user