From 7fbb2c32e265c0a2edb2fcf3c17ccddc64d5c283 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 1 Mar 2018 08:24:24 -0700 Subject: [PATCH] Fix BAR variables --- pcid/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcid/src/main.rs b/pcid/src/main.rs index e8f8eea829..853829be18 100644 --- a/pcid/src/main.rs +++ b/pcid/src/main.rs @@ -119,11 +119,11 @@ fn handle_parsed_header(config: &Config, pci: &Pci, bus_num: u8, "$BAR2" if header.header_type() == PciHeaderType::GENERAL => format!("{}", header.get_bar(2)), "$BAR3" if header.header_type() == PciHeaderType::GENERAL => - format!("{}", header.get_bar(2)), + format!("{}", header.get_bar(3)), "$BAR4" if header.header_type() == PciHeaderType::GENERAL => - format!("{}", header.get_bar(2)), + format!("{}", header.get_bar(4)), "$BAR5" if header.header_type() == PciHeaderType::GENERAL => - format!("{}", header.get_bar(2)), + format!("{}", header.get_bar(5)), "$IRQ" => format!("{}", header.interrupt_line()), "$VENID" => format!("{:>04X}", header.vendor_id()), "$DEVID" => format!("{:>04X}", header.device_id()),