Skip to content

Commit

Permalink
fix(virtio/pci): error message typo
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 29, 2024
1 parent fd3f2b6 commit f9a4168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/virtio/transport/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl PciCap {
/// Returns a reference to the actual structure inside the PCI devices memory space.
fn map_common_cfg(&self) -> Option<VolatileRef<'static, CommonCfg>> {
if self.bar.length < u64::from(self.length + self.offset) {
error!("Common config of with id {} of device {:x}, does not fit into memory specified by bar {:x}!",
error!("Common config of the capability with id {} of device {:x} does not fit into memory specified by bar {:x}!",
self.id,
self.origin.dev_id,
self.bar.index
Expand Down

0 comments on commit f9a4168

Please sign in to comment.