From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=ray.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AA21D201B0408 for ; Tue, 19 Feb 2019 18:21:38 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2019 18:21:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,388,1544515200"; d="scan'208";a="127766596" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 19 Feb 2019 18:21:37 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Feb 2019 18:21:37 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 19 Feb 2019 18:21:36 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.102]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.190]) with mapi id 14.03.0415.000; Wed, 20 Feb 2019 10:21:34 +0800 From: "Ni, Ray" To: 'Laszlo Ersek' , "Bi, Dandan" CC: "edk2-devel@lists.01.org" , "Wu, Hao A" Thread-Topic: [edk2] [patch 2/2] MdeModulePkg/BmBoot: Report status when fail to load/start boot option Thread-Index: AQHUxQvDtyzelIknOUWztZpzvY84P6XnZGCAgACWr8A= Date: Wed, 20 Feb 2019 02:21:33 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C026CBB@SHSMSX104.ccr.corp.intel.com> References: <20190215085141.64244-1-dandan.bi@intel.com> <20190215085141.64244-3-dandan.bi@intel.com> <3dbe48e2-3c1d-1cf8-3172-6a96e27ee454@redhat.com> In-Reply-To: <3dbe48e2-3c1d-1cf8-3172-6a96e27ee454@redhat.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [patch 2/2] MdeModulePkg/BmBoot: Report status when fail to load/start boot option X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2019 02:21:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 TGFzemxvLA0KVGhhbmtzIGZvciBjYXRjaGluZyB0aGlzLg0KDQpHZW5QZXJmb3JtTWVtb3J5VGVz dCgpIGluDQpNZGVNb2R1bGVQa2dcVW5pdmVyc2FsXE1lbW9yeVRlc3RcR2VuZXJpY01lbW9yeVRl c3REeGVcTGlnaHRNZW1vcnlUZXN0LmMNCnVzZXMgdGhlIHNhbWUgdGVjaG5pY3MgYXMgeW91IHN1 Z2dlc3RlZC4NCg0KSSBnaXZlIHVwIHRvIHByb3Bvc2UgYW5vdGhlciBvcHRpb246IGhhdmluZyBw YWNrKDEpIGZvciB0aGUgbmV3IHN0YXR1cyBzdHJ1Y3R1cmUuDQoNCg0KPiAtLS0tLU9yaWdpbmFs IE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMYXN6bG8gRXJzZWsgPGxlcnNla0ByZWRoYXQuY29tPg0K PiBTZW50OiBXZWRuZXNkYXksIEZlYnJ1YXJ5IDIwLCAyMDE5IDk6MTkgQU0NCj4gVG86IEJpLCBE YW5kYW4gPGRh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