Permalink
Browse files

Fix BAR variables

  • Loading branch information...
jackpot51 committed Mar 1, 2018
1 parent 452c586 commit 7fbb2c32e265c0a2edb2fcf3c17ccddc64d5c283
Showing with 3 additions and 3 deletions.
  1. +3 −3 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()),

0 comments on commit 7fbb2c3

Please sign in to comment.