Skip to content

Commit

Permalink
VITIS-10910 Fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Benusovich <[email protected]>
  • Loading branch information
dbenusov committed Dec 19, 2023
1 parent 8b7d09b commit b578821
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/runtime_src/core/tools/common/XBUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ XBUtilities::get_available_devices(bool inUserDomain)
// The id wasn't added
}

try {
auto instance = xrt_core::device_query<xrt_core::query::instance>(device);
std::string pf = device->is_userpf() ? "user" : "mgmt";
pt_dev.put("instance",boost::str(boost::format("%s(inst=%d)") % pf % instance));
}
catch(const xrt_core::query::exception&) {
// The instance wasn't added
}
try {
auto instance = xrt_core::device_query<xrt_core::query::instance>(device);
std::string pf = device->is_userpf() ? "user" : "mgmt";
pt_dev.put("instance",boost::str(boost::format("%s(inst=%d)") % pf % instance));
}
catch(const xrt_core::query::exception&) {
// The instance wasn't added
}

}
pt_dev.put("is_ready", xrt_core::device_query_default<xrt_core::query::is_ready>(device, true));
Expand Down

0 comments on commit b578821

Please sign in to comment.