feat(log): 将内核日志统一为新的logger (#814)

This commit is contained in:
曾俊
2024-05-16 17:25:23 +08:00
committed by GitHub
parent 92deae638b
commit 2eab6dd743
181 changed files with 1321 additions and 1261 deletions

View File

@ -10,7 +10,6 @@ use crate::{
},
net::NetDevice,
},
kinfo,
libs::spinlock::SpinLock,
net::{generate_iface_id, NET_DEVICES},
time::Instant,
@ -24,6 +23,7 @@ use core::{
fmt::Debug,
ops::{Deref, DerefMut},
};
use log::info;
use smoltcp::{
phy,
wire::{self, HardwareAddress},
@ -367,5 +367,5 @@ pub fn e1000e_driver_init(device: E1000EDevice) {
NET_DEVICES
.write_irqsave()
.insert(iface.nic_id(), iface.clone());
kinfo!("e1000e driver init successfully!\tMAC: [{}]", mac);
info!("e1000e driver init successfully!\tMAC: [{}]", mac);
}