소스 검색

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`