mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 13:46:36 +00:00
feat(log): 将内核日志统一为新的logger (#814)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user