Skip to content

Commit

Permalink
注释掉两个kdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
fslongjin committed Dec 19, 2023
1 parent f84ec14 commit 687bab8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kernel/src/driver/base/device/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{
kobject::KObject,
kset::KSet,
},
kdebug, kinfo,
kinfo,
syscall::SystemError,
};

Expand Down Expand Up @@ -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<dyn KObject>;
Expand All @@ -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<dyn KObject>;
Expand Down
4 changes: 2 additions & 2 deletions kernel/src/driver/base/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@ impl DeviceManager {
device: &Arc<dyn Device>,
current_parent: Option<Arc<dyn Device>>,
) -> Result<Option<Arc<dyn KObject>>, SystemError> {
kdebug!("get_device_parent() device:{:?}", device.name());
// kdebug!("get_device_parent() device:{:?}", device.name());
if let Some(_) = device.class() {
let parent_kobj: Arc<dyn KObject>;
kdebug!("current_parent:{:?}", current_parent);
// kdebug!("current_parent:{:?}", current_parent);
if current_parent.is_none() {
parent_kobj = sys_devices_virtual_kset() as Arc<dyn KObject>;
} else {
Expand Down

0 comments on commit 687bab8

Please sign in to comment.