Explorar o código

Add trace for debugging AML method calls

Isaac Woods %!s(int64=5) %!d(string=hai) anos
pai
achega
e376022525
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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`