File tree Expand file tree Collapse file tree
src/runtime_src/core/tools/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ())
You can’t perform that action at this time.
0 commit comments