mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2026-09-08 23:57:59 +08:00
refactor(net): remove noisy debug log in rtnetlink attr parsing (#2262)
Drop an accidentally committed log::info!() call inside convert_one_from_raw_buf(), which spammed an unrelated length message on every netlink route attribute decode. Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
@@ -10,7 +10,6 @@ pub mod route;
|
||||
pub(in crate::net::socket::netlink::route) const IFNAME_SIZE: usize = 16;
|
||||
|
||||
pub(super) fn convert_one_from_raw_buf<T>(src: &[u8]) -> Result<&T, SystemError> {
|
||||
log::info!("convert_one_from_raw_buf: src.len() = {}", src.len());
|
||||
if core::mem::size_of::<T>() > src.len() {
|
||||
return Err(SystemError::EINVAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user