diff --git a/src/runtime_src/core/tools/common/SubCmdExamineInternal.cpp b/src/runtime_src/core/tools/common/SubCmdExamineInternal.cpp index 7083f59f2f..0457e1803f 100644 --- a/src/runtime_src/core/tools/common/SubCmdExamineInternal.cpp +++ b/src/runtime_src/core/tools/common/SubCmdExamineInternal.cpp @@ -1,5 +1,5 @@ // SPDX-License-Identifier: Apache-2.0 -// Copyright (C) 2023-2024 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (C) 2023-2025 Advanced Micro Devices, Inc. All rights reserved. // ------ I N C L U D E F I L E S ------------------------------------------- // Local - Include Files diff --git a/src/runtime_src/core/tools/common/XBHelpMenus.cpp b/src/runtime_src/core/tools/common/XBHelpMenus.cpp index ba3c96a560..278e4a9c6e 100644 --- a/src/runtime_src/core/tools/common/XBHelpMenus.cpp +++ b/src/runtime_src/core/tools/common/XBHelpMenus.cpp @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2020-2022 Xilinx, Inc -// Copyright (C) 2022-2023 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved. // ------ I N C L U D E F I L E S ------------------------------------------- // Local - Include Files diff --git a/src/runtime_src/core/tools/common/XBUtilities.cpp b/src/runtime_src/core/tools/common/XBUtilities.cpp index c4dd597cc3..4f7e5e04ed 100755 --- a/src/runtime_src/core/tools/common/XBUtilities.cpp +++ b/src/runtime_src/core/tools/common/XBUtilities.cpp @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2019-2022 Xilinx, Inc -// Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved. // ------ I N C L U D E F I L E S ------------------------------------------- #include "XBUtilities.h" @@ -230,7 +230,7 @@ try { if(tokens.size() > 2) domain = static_cast(std::stoi(std::string(tokens[2]), nullptr, radix)); } catch (const std::invalid_argument&) { - //ignore + throw std::runtime_error(boost::str(boost::format("Invalid BDF '%s'") % bdfstr) + XBUtilities::str_available_devs(_inUserDomain)); } // Iterate through the available devices to find a BDF match diff --git a/src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp b/src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp index b27c6ad6d4..52abe4b252 100644 --- a/src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp +++ b/src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2019-2022 Xilinx, Inc -// Copyright (C) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (C) 2022-2025 Advanced Micro Devices, Inc. All rights reserved. // ------ I N C L U D E F I L E S ------------------------------------------- // Local - Include Files