diff options
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/rust/rust_driver_pci.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/rust/rust_driver_pci.rs b/samples/rust/rust_driver_pci.rs index 4dfb8a6a4707..d3d4a7931deb 100644 --- a/samples/rust/rust_driver_pci.rs +++ b/samples/rust/rust_driver_pci.rs @@ -73,19 +73,19 @@ impl SampleDriver { // TODO: use the register!() macro for defining PCI configuration space registers once it // has been move out of nova-core. dev_info!( - pdev.as_ref(), + pdev, "pci-testdev config space read8 rev ID: {:x}\n", config.read8(0x8) ); dev_info!( - pdev.as_ref(), + pdev, "pci-testdev config space read16 vendor ID: {:x}\n", config.read16(0) ); dev_info!( - pdev.as_ref(), + pdev, "pci-testdev config space read32 BAR 0: {:x}\n", config.read32(0x10) ); |
