Skip to content

Commit 0385c88

Browse files
authored
AIESW-21328 Re-add Version to driver name output (#9559) (#9565)
(cherry picked from commit 1e2be09) Signed-off-by: Ryan Chane <rchane@xilinx.com>
1 parent 94ce5fb commit 0385c88

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/runtime_src/core/tools/common/XBUtilities.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// Copyright (C) 2019-2022 Xilinx, Inc
3-
// Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved.
3+
// Copyright (C) 2022-2026 Advanced Micro Devices, Inc. All rights reserved.
44

55
// ------ I N C L U D E F I L E S -------------------------------------------
66
#include "XBUtilities.h"
@@ -782,10 +782,11 @@ fill_xrt_versions(const boost::property_tree::ptree& pt_xrt,
782782
drv_ver = pt_os.get<std::string>("release", "N/A");
783783
}
784784

785+
std::string drv_label = boost::iequals(drv_name, "N/A") ? drv_name : drv_name.append(" Version");
785786
if (drv_hash == "unknown" || drv_hash == "N/A")
786-
output << boost::format(" %-20s : %s\n") % drv_name % drv_ver;
787+
output << boost::format(" %-20s : %s\n") % drv_label % drv_ver;
787788
else
788-
output << boost::format(" %-20s : %s, %s\n") % drv_name % drv_ver % drv_hash;
789+
output << boost::format(" %-20s : %s, %s\n") % drv_label % drv_ver % drv_hash;
789790
}
790791

791792
if (available_devices.empty())

0 commit comments

Comments
 (0)