We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e0c0f commit e986ac7Copy full SHA for e986ac7
src/aml/namespace.rs
@@ -9,6 +9,7 @@ use alloc::{
9
};
10
use bit_field::BitField;
11
use core::{fmt, str, str::FromStr};
12
+use log::trace;
13
14
#[derive(Clone)]
15
pub struct Namespace {
@@ -70,7 +71,14 @@ impl Namespace {
70
71
let (level, last_seg) = self.get_level_for_path_mut(&path)?;
72
match level.values.insert(last_seg, (ObjectFlags::new(false), object)) {
73
None => Ok(()),
- Some(_) => Err(AmlError::NameCollision(path)),
74
+ Some(_) => {
75
+ /*
76
+ * Real AML often has name collisions, and so we can't afford to be too strict
77
+ * about it. We do warn the user as it does have the potential to break stuff.
78
+ */
79
+ trace!("AML name collision: {}. Replacing object.", path);
80
+ Ok(())
81
+ }
82
}
83
84
0 commit comments