From 687bab8eab49fea72090f4fda0428477e31da1b8 Mon Sep 17 00:00:00 2001 From: longjin Date: Tue, 19 Dec 2023 11:48:18 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E4=B8=A4=E4=B8=AAkd?= =?UTF-8?q?ebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/src/driver/base/device/init.rs | 6 +++--- kernel/src/driver/base/device/mod.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/src/driver/base/device/init.rs b/kernel/src/driver/base/device/init.rs index fbbab5665..5a7919f84 100644 --- a/kernel/src/driver/base/device/init.rs +++ b/kernel/src/driver/base/device/init.rs @@ -10,7 +10,7 @@ use crate::{ kobject::KObject, kset::KSet, }, - kdebug, kinfo, + kinfo, syscall::SystemError, }; @@ -53,7 +53,7 @@ pub fn devices_init() -> Result<(), SystemError> { // 创建 `/sys/dev/block` 目录 { - kdebug!("create /sys/dev/block"); + // kdebug!("create /sys/dev/block"); let dev_kset = sys_dev_kset(); let dev_block_kset = KSet::new("block".to_string()); let parent = dev_kset.clone() as Arc; @@ -68,7 +68,7 @@ pub fn devices_init() -> Result<(), SystemError> { // 创建 `/sys/dev/char` 目录 { - kdebug!("create /sys/dev/char"); + // kdebug!("create /sys/dev/char"); let dev_kset = sys_dev_kset(); let dev_char_kset = KSet::new("char".to_string()); let parent = dev_kset.clone() as Arc; diff --git a/kernel/src/driver/base/device/mod.rs b/kernel/src/driver/base/device/mod.rs index be95f9b3a..7d86f4ca8 100644 --- a/kernel/src/driver/base/device/mod.rs +++ b/kernel/src/driver/base/device/mod.rs @@ -561,10 +561,10 @@ impl DeviceManager { device: &Arc, current_parent: Option>, ) -> Result>, SystemError> { - kdebug!("get_device_parent() device:{:?}", device.name()); + // kdebug!("get_device_parent() device:{:?}", device.name()); if let Some(_) = device.class() { let parent_kobj: Arc; - kdebug!("current_parent:{:?}", current_parent); + // kdebug!("current_parent:{:?}", current_parent); if current_parent.is_none() { parent_kobj = sys_devices_virtual_kset() as Arc; } else {