From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 005721A1E10 for ; Sun, 16 Oct 2016 06:32:37 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 16 Oct 2016 06:32:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,354,1473145200"; d="scan'208";a="1045390735" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 16 Oct 2016 06:32:37 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 16 Oct 2016 06:32:37 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 16 Oct 2016 06:32:36 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.139]) by shsmsx102.ccr.corp.intel.com ([169.254.2.206]) with mapi id 14.03.0248.002; Sun, 16 Oct 2016 21:32:32 +0800 From: "Zhu, Yonghong" To: "Justen, Jordan L" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Zhu, Yonghong" Thread-Topic: [edk2] [Patch] BaseTools: PatchCheck to align with wiki and report error for EFI_D_* Thread-Index: AQHSJTRj7xp1cnJakEKmcTUrQ0ynQ6CpcLaAgAGnKPA= Date: Sun, 16 Oct 2016 13:32:32 +0000 Message-ID: References: <1476350987-11628-1-git-send-email-yonghong.zhu@intel.com> <147656241940.18236.15576249978641536178@jljusten-ivb> In-Reply-To: <147656241940.18236.15576249978641536178@jljusten-ivb> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDJhYjVhY2MtMDZhNC00NDg2LWE0NzctOWUwZjk5MGYwYzVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImZOcERsblZXRWozU2FpQWJOdnpSS0NUcnlNWXEwQThqZ3BIaFRTUllROFE9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: PatchCheck to align with wiki and report error for EFI_D_* X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2016 13:32:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhhbmtzIEpvcmRhbi4gSSB3aWxsIHNlcGFyYXRlIHRoZSBwYXRjaGVzIGFuZCBzZW5kIG91dCB0 aGUgdXBkYXRlZCB2ZXJzaW9uLg0KDQpCZXNpZGVzIGNhbiB5b3UgaGVscCB0byB1cGRhdGUgdGhl IHdpa2kgPyANCg0KQmVzdCBSZWdhcmRzLA0KWmh1IFlvbmdob25nDQoNCg0KLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0tLS0NCkZyb206IEp1c3RlbiwgSm9yZGFuIEwgDQpTZW50OiBTdW5kYXksIE9j dG9iZXIgMTYsIDIwMTYgNDoxNCBBTQ0KVG86IFpodSwgWW9uZ2hvbmcgPHlvbmdob25nLnpodUBp bnRlbC5jb20+OyBlZG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pZiBjb3VudCA+PSAxIGFuZCBsZW4obGluZXNbMF0pID4gNzY6DQo+ICsgICAgICAg IGlmIGNvdW50ID49IDEgYW5kIGxlbihsaW5lc1swXSkgPiA3MDoNCj4gICAgICAgICAgICAgIHNl bGYuZXJyb3IoJ0ZpcnN0IGxpbmUgb2YgY29tbWl0IG1lc3NhZ2UgKHN1YmplY3QgbGluZSkgJyAr DQo+ICAgICAgICAgICAgICAgICAgICAgICAgICdpcyB0b28gbG9uZy4nKQ0KPiAgDQo+ICAgICAg ICAgIGlmIGNvdW50ID49IDEgYW5kIGxlbihsaW5lc1swXS5zdHJpcCgpKSA9PSAwOg0KPiAgICAg ICAgICAgICAgc2VsZi5lcnJvcignRmlyc3QgbGluZSBvZiBjb21taXQgbWVzc2FnZSAoc3ViamVj dCBsaW5lKSAnIA0KPiArIEBAIC0yMDgsMTEgKzIwOCwxMSBAQCBjbGFzcyBDb21taXRNZXNzYWdl Q2hlY2s6DQo+ICAgICAgICAgIGlmIGNvdW50ID49IDIgYW5kIGxpbmVzWzFdLnN0cmlwKCkgIT0g Jyc6DQo+ICAgICAgICAgICAgICBzZWxmLmVycm9yKCdTZWNvbmQgbGluZSBvZiBjb21taXQgbWVz c2FnZSBzaG91bGQgYmUgJyArDQo+ICAgICAgICAgICAgICAgICAgICAgICAgICdlbXB0eS4nKQ0K PiAgDQo+ICAgICAgICAgIGZvciBpIGluIHJhbmdlKDIsIGNvdW50KToNCj4gLSAgICAgICAgICAg IGlmIChsZW4obGluZXNbaV0pID4gNzYgYW5kDQo+ICsgICAgICAgICAgICBpZiAobGVuKGxpbmVz W2ldKSA+IDcwIGFuZA0KPiAgICAgICAgICAgICAgICAgIGxlbihsaW5lc1tpXS5zcGxpdCgpKSA+ IDEgYW5kDQo+ICAgICAgICAgICAgICAgICAgbm90IGxpbmVzW2ldLnN0YXJ0c3dpdGgoJ2dpdC1z dm4taWQ6JykpOg0KPiAgICAgICAgICAgICAgICAgIHNlbGYuZXJyb3IoJ0xpbmUgJWQgb2YgY29t bWl0IG1lc3NhZ2UgaXMgdG9vIGxvbmcuJyAlIA0KPiAoaSArIDEpKQ0KPiAgDQo+ICAgICAgICAg IGxhc3Rfc2lnX2xpbmUgPSBOb25lDQo+IEBAIC0zNTQsMTAgKzM1NCwxMiBAQCBjbGFzcyBHaXRE aWZmQ2hlY2s6DQo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGluZSkNCj4g ICAgICAgICAgaWYgJyAgICAnIGluIGxpbmU6DQo+ICAgICAgICAgICAgICBzZWxmLmFkZGVkX2xp bmVfZXJyb3IoJ1RhYiBjaGFyYWN0ZXIgdXNlZCcsIGxpbmUpDQo+ICAgICAgICAgIGlmIGxlbihz dHJpcHBlZCkgPCBsZW4obGluZSk6DQo+ICAgICAgICAgICAgICBzZWxmLmFkZGVkX2xpbmVfZXJy b3IoJ1RyYWlsaW5nIHdoaXRlc3BhY2UgZm91bmQnLCBsaW5lKQ0KPiArICAgICAgICBpZiAnRUZJ X0RfJyBpbiBsaW5lOg0KPiArICAgICAgICAgICAgc2VsZi5hZGRlZF9saW5lX2Vycm9yKCdFRklf RF8qIHVzZWQsIFBsZWFzZSB1c2UgREVCVUdfKiANCj4gKyBmb3JtYXQnLCBsaW5lKQ0KPiAgDQo+ ICAgICAgc3BsaXRfZGlmZl9yZSA9IHJlLmNvbXBpbGUocicnJw0KPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAoP1A8Y21kPg0KPiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgXiBkaWZmIFxzKyAtLWdpdCBccysgYS8uKyBccysgYi8uKyAkDQo+ICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICkNCj4gQEAgLTQ3MSwxMSArNDczLDIw IEBAIGNsYXNzIENoZWNrT25lUGF0Y2g6DQo+ICAgICAgICAgICAgICBzZWxmLmNvbW1pdF9tc2cg PSBtby5ncm91cCgnY29tbWl0X21lc3NhZ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j b21taXRfc3ViamVjdFtwZnhfc3RhcnQgKyAxIDogcGZ4X2VuZF0NCj4gICAgICAgICAgICAgICAg ICBzZWxmLmNvbW1pdF9zdWJqZWN0ID0gc2VsZi5jb21taXRfc3ViamVjdFtwZnhfZW5kICsgMSAN Cj4gOl0ubHN0cmlwKCkNCj4gLS0NCj4gMi42LjEud2luZG93cy4xDQo+IA0KPiBfX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBlZGsyLWRldmVsIG1haWxp bmcgbGlzdA0KPiBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0KPiBodHRwczovL2xpc3RzLjAxLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL2VkazItZGV2ZWwNCg==