Kaynağa Gözat

Dump status and command for debugging.

Andrew Walbran 2 yıl önce
ebeveyn
işleme
0dd41a4d35
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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]