Parcourir la source

Dump status and command for debugging.

Andrew Walbran il y a 2 ans
Parent
commit
0dd41a4d35
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      examples/aarch64/src/main.rs

+ 5 - 0
examples/aarch64/src/main.rs

@@ -318,6 +318,11 @@ fn allocate_bars(
         device_function,
         Command::IO_SPACE | Command::MEMORY_SPACE | Command::BUS_MASTER,
     );
+    let (status, command) = root.get_status_command(device_function);
+    debug!(
+        "Allocated BARs and enabled device, status {:?} command {:?}",
+        status, command
+    );
 }
 
 #[panic_handler]