forked from AbleOS/ableos
gate some cluttering information behind debug builds
This commit is contained in:
parent
d9dd42d9c3
commit
9ba18e839a
|
@ -198,7 +198,7 @@ pub fn handler(vm: &mut Vm) {
|
|||
msg_vec.push(value);
|
||||
}
|
||||
buff.push(msg_vec.clone());
|
||||
info!(
|
||||
debug!(
|
||||
"Message {:?} has been sent to Buffer({})",
|
||||
msg_vec, buffer_id
|
||||
);
|
||||
|
@ -242,7 +242,7 @@ pub fn handler(vm: &mut Vm) {
|
|||
}
|
||||
}
|
||||
|
||||
info!("Recieve {:?} from Buffer({})", msg, buffer_id);
|
||||
debug!("Recieve {:?} from Buffer({})", msg, buffer_id);
|
||||
}
|
||||
}
|
||||
5 => {
|
||||
|
|
|
@ -9,7 +9,11 @@ use {
|
|||
|
||||
pub fn init() -> Result<(), SetLoggerError> {
|
||||
log::set_logger(&crate::logger::Logger)?;
|
||||
log::set_max_level(log::LevelFilter::Debug);
|
||||
if cfg!(debug_assertions) {
|
||||
log::set_max_level(log::LevelFilter::Debug);
|
||||
} else {
|
||||
log::set_max_level(log::LevelFilter::Info);
|
||||
}
|
||||
|
||||
Lazy::force(&TERMINAL_LOGGER);
|
||||
|
||||
|
|
|
@ -7,14 +7,8 @@
|
|||
// pci class = 0x0300 (or 768)
|
||||
|
||||
main := fn(): void {
|
||||
// check_all_buses()
|
||||
bus := 0
|
||||
// slot := 0
|
||||
// a := memory.request_page(1)
|
||||
// loop if bus >= 256 break else {
|
||||
// b := pci_config_read_word(bus, 0, 0, 0)
|
||||
// log.info(string.display_int(b, a))
|
||||
// bus += 1
|
||||
// }
|
||||
a := memory.request_page(1)
|
||||
b := pci_config_read_word(0, 0, 0, 0)
|
||||
log.info(string.display_int(b, a))
|
||||
return
|
||||
}
|
Loading…
Reference in a new issue