浏览代码

Add trace for debugging AML method calls

Isaac Woods 5 年之前
父节点
当前提交
e376022525
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      aml/src/lib.rs

+ 1 - 0
aml/src/lib.rs

@@ -143,6 +143,7 @@ impl AmlContext {
             self.local_6 = None;
             self.local_7 = None;
 
+            log::trace!("Invoking method with {} arguments, code: {:x?}", flags.arg_count(), code);
             let return_value =
                 match term_list(PkgLength::from_raw_length(&code, code.len() as u32)).parse(&code, self) {
                     // If the method doesn't return a value, we implicitly return `0`