Forráskód Böngészése

Dump status and command for debugging.

Andrew Walbran 2 éve
szülő
commit
0dd41a4d35
1 módosított fájl, 5 hozzáadás és 0 törlés
  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]