浏览代码

Dump status and command for debugging.

Andrew Walbran 2 年之前
父节点
当前提交
0dd41a4d35
共有 1 个文件被更改,包括 5 次插入0 次删除
  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]