From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.70]) by mx.groups.io with SMTP id smtpd.web11.4819.1642723121001655383 for ; Thu, 20 Jan 2022 15:58:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=selector2 header.b=s6PIBNdU; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.244.70, mailfrom: jake@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ei938+Ynd5/nafaKy7zgCyhgrqfUvU9wTZyA7JPZF/nABf8a3VMdSkmfu+fkR5CAdRnq0ZJVobfB4E/tMRfRE6jUg0m1WEZPDunQOtIsPjphO5DoWIQU4xQ/+vBfB7YCiK66dJACetC0Rxn7/E/hHPgNbDgKw4LO7vzlbFFNXqYuvkwNlj49c0c0SvH39VSUBdPR2QRC4lVVy1oN5AbbFa9zN1xa3OLwGskM3cHeKVXRMN4pYxyTkoO/D3zd7VGs2qIjgdIlMp0S5wEWB5A9Opfu87L/9FqDKYqLvhky7fm6lhGmegXJHfEs562FXrtUDyKe7smPmv448B2gpYYc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1ybcPENTaNasDMhlVURjOwJD6e+DAZPWcg0MNoK08rI=; b=mIbcj0RmTl1PTxovgynDumAzOJ60b7bVj4SARCwQHFcnGIsuzp9LV5O3GFSiEaCJTqGjgUJ+WbkU6093JBxg5zBj/QnKEXOgatX1ARRf3wdFzph0VaFF97Kn5AqjNp1wYyJ2WmIJ5Lho58FUKYL80oJA9GdQHdpu0MKXp8RWZ7RqcUdFZDIw8zSv6nZRim6UgP7CXUTRgDtb8MBaxoMMkL3oG94sm9JQ86IgeFIHOPrlIOZYQyUukB8aFipuLMSlMCnTQjq1F349lTfbxzPR69B0aYdFC4xFxuxD3W/gfIGlvfdoqJGgZ3XgMikGmUHpuKS6jcKwTyu0q+7Gjah50g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1ybcPENTaNasDMhlVURjOwJD6e+DAZPWcg0MNoK08rI=; b=s6PIBNdUp9lrhRqHgBT+saBYl42kyPEko0vVwj8Il3DjGsn7ZiyjelUf6M7ajw5nCWrpGo5hcQyD7hUlmhLNIS9MNkZWBXKc7OlRBN1szLHmqM39SbcLxCvqB//Oi6i+87kBgbcnKJAymgeW8XZsvKa6wCNBXs2Sl2qTEpQbDptAXSGOVBWM5pgRWG2/NJNteVWkie7UkgahVsJtLBc2H6SzNU+TbNfg+otEClNJTMJqQKElqHzoFNpFMCJ4PV8Cfnu0GeGrR/Pydh2bAks9HbpXn9ji4JG/AT6zubuFVyuyrvelxQfXf5p7nzTb+gNnuiMlApatP4b8X6+dMTg+EQ== Received: from DM5PR07CA0143.namprd07.prod.outlook.com (2603:10b6:3:13e::33) by DM6PR12MB3947.namprd12.prod.outlook.com (2603:10b6:5:148::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.12; Thu, 20 Jan 2022 23:58:39 +0000 Received: from DM6NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:3:13e:cafe::87) by DM5PR07CA0143.outlook.office365.com (2603:10b6:3:13e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8 via Frontend Transport; Thu, 20 Jan 2022 23:58:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.235) by DM6NAM11FT013.mail.protection.outlook.com (10.13.173.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4909.7 via Frontend Transport; Thu, 20 Jan 2022 23:58:39 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 20 Jan 2022 23:58:38 +0000 Received: from jake-vm-01.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Thu, 20 Jan 2022 15:58:37 -0800 From: jake@nvidia.com To: , , CC: Jake Garver Subject: [PATCH] BaseTools: Fix error leg in DscBuildData.py Date: Thu, 20 Jan 2022 18:58:24 -0500 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Return-Path: jake@nvidia.com X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01a7213c-e689-4f2a-3654-08d9dc70c7aa X-MS-TrafficTypeDiagnostic: DM6PR12MB3947:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1/P13DfGGWuwWbS43eWW8OMtsq+Ra28zuiMxZNOYm2lcbZMFIxhgmepa2ekfPHi7Lf5hIDMDEjgOH5jaFzBvz1sU+T8NJw6VZJ2D+HUfyzwgcbCmP/Ym8BB1PzP7QuOyMkS3T2aSDUGu9g9eJ6Hm2sJrDSkCzsYKnlCMdJeJnoMHSykNnPe1MczHzdltiggmg3hnPH2nRpRvAX2kDXseLEI72UbgZXJYkVoR/l6uSqVLCutv0xfYoV/dXkMKKR4k7MuGzk2PnS14UfuPtc8DY8PWWKmOQ2ZzBg3xvUuxanmpnotlluf4/vSaFkeJoY0MBhqI53ONLAhpextsuELHJkPvTp+llPX8LX6MlpE7dJurzkfc2siw/Wq+FjCV9zcb5ZcpqAEv9zqmK7ZC/CwIStuP73QJ2PEFJapNIhfE5bxAfQ1zsvFqGBAWAnGxwI++1BxvCOEVXfYg7i7Hun83a47/Xs+gXxgEEV+XxWMvcJkARymWvUaYBFZg+CCKg/rSRIbalbSHUY9i7xNWtndiiPBrD/N49756qUIM4VbmkFij5E1AfS1xuXmWBImqA10bXulbeiYyU7SclPX+/A8Sqgq7m1USbKYJGhcU9uzVCH7Cc9Ubmmz9tV14D0UFsc2C9n1Lb6y3BdbhRnGBUsFZKJiqh6R75dZMg8XLMTqebAHcJf6DzMf+AAMPlWbB+ji1YAE5TRsutlfgd8S0y1xjuF7GHUoYxNVAHbhT9azt5tRhDf/ZFxsUFVEO+WyZ46y/ZjNyyJbPElFrX2GmH9A57BmZhYTGMW0sFr6rwPNLPx4= X-Forefront-Antispam-Report: CIP:12.22.5.235;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(4636009)(46966006)(40470700002)(36840700001)(316002)(36756003)(2906002)(8936002)(107886003)(83380400001)(110136005)(16526019)(336012)(6666004)(356005)(36860700001)(6636002)(2616005)(4326008)(5660300002)(47076005)(82310400004)(40460700001)(70586007)(426003)(86362001)(81166007)(7696005)(26005)(186003)(8676002)(508600001)(70206006)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2022 23:58:39.1717 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01a7213c-e689-4f2a-3654-08d9dc70c7aa X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.235];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3947 Content-Type: text/plain Fix a Edk2Logger.warn() message format to match the arguments. We ran into this after a failure in PcdValueInit. The failure was masked by a new exception, "TypeError: not all arguments converted during string formatting". Signed-off-by: Jake Garver --- BaseTools/Source/Python/Workspace/DscBuildData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 35ec5b37ff..d29b9bf13d 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -3033,7 +3033,7 @@ class DscBuildData(PlatformBuildClassObject): returncode, StdOut, StdErr = DscBuildData.ExecuteCommand (Command) EdkLogger.verbose ('%s\n%s\n%s' % (Command, StdOut, StdErr)) if returncode != 0: - EdkLogger.warn('Build', COMMAND_FAILURE, 'Can not collect output from command: %s\n%s\n' % (Command, StdOut, StdErr)) + EdkLogger.warn('Build', COMMAND_FAILURE, 'Can not collect output from command: %s\n%s\n%s\n' % (Command, StdOut, StdErr)) #start update structure pcd final value File = open (OutputValueFile, 'r') -- 2.17.1