Skip to content

Commit

Permalink
xbutil list split by space (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
chienwei-lan authored and maxzhen committed Sep 19, 2019
1 parent ae3c3f2 commit ec523c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/runtime_src/core/pcie/linux/scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,15 +673,15 @@ std::ostream& operator<<(std::ostream& stream,
dev->sysfs_get("rom", "VBNV", err, shell_name);
dev->sysfs_get("rom", "timestamp", err, ts);
}
stream << ":" << shell_name;
stream << " " << shell_name;
if (ts != 0)
stream << "(ts=0x" << std::hex << ts << ")";

// instance number
if (dev->is_mgmt)
stream << ":mgmt(inst=";
stream << " mgmt(inst=";
else
stream << ":user(inst=";
stream << " user(inst=";
stream << std::dec << dev->instance << ")";

stream.flags(f);
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/core/pcie/tools/xbutil/xbutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void print_pci_info(std::ostream &ostr)
ostr << " ";
else
ostr << "*";
ostr << "[" << j << "]:" << dev << std::endl;
ostr << "[" << j << "] " << dev << std::endl;
}

if (pcidev::get_dev_total() != pcidev::get_dev_ready()) {
Expand Down

0 comments on commit ec523c9

Please sign in to comment.