From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C79231A1E43 for ; Wed, 26 Oct 2016 18:47:36 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP; 26 Oct 2016 18:47:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="24210967" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 26 Oct 2016 18:47:36 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 18:47:35 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 26 Oct 2016 18:47:35 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.209]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.96]) with mapi id 14.03.0248.002; Thu, 27 Oct 2016 09:47:32 +0800 From: "Ni, Ruiyu" To: Laszlo Ersek , edk2-devel-01 CC: "Carsey, Jaben" Thread-Topic: [PATCH 42/47] ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE() Thread-Index: AQHSL7wU70a5uRE79k6kPNVqr8E2LKC7iKsQ Date: Thu, 27 Oct 2016 01:47:31 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D58E42CC3@SHSMSX104.ccr.corp.intel.com> References: <20161026190504.9888-1-lersek@redhat.com> <20161026190504.9888-43-lersek@redhat.com> In-Reply-To: <20161026190504.9888-43-lersek@redhat.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGUxMTRhMDItOTE3Yy00NGZmLTliNWQtYWJhMTI4ZWFjZmRhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlFMMmVxdW5zQmRaS2M0cVlcL2p6TGl1dEFHXC85bXdoWklTZVltQ1JQZWduRT0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 42/47] ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE() 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: Thu, 27 Oct 2016 01:47:37 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni >-----Original Message----- >From: Laszlo Ersek [mailto:lersek@redhat.com] >Sent: Thursday, October 27, 2016 3:05 AM >To: edk2-devel-01 >Cc: Carsey, Jaben ; Ni, Ruiyu >Subject: [PATCH 42/47] ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRA= Y_SIZE() > >Cc: Jaben Carsey >Cc: Ruiyu Ni >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Laszlo Ersek >--- > ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c >b/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c >index 3ebc72a0afa8..5383cffe879c 100644 >--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c >+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c >@@ -942,7 +942,7 @@ ShellCommandRunTimeZone ( > // > if (ShellCommandLineGetFlag (Package, L"-f")) { > for ( LoopVar =3D 0 >- ; LoopVar < sizeof (TimeZoneList) / sizeof (TimeZoneList[0]= ) >+ ; LoopVar < ARRAY_SIZE (TimeZoneList) > ; LoopVar++ > ){ > if (TheTime.TimeZone =3D=3D TimeZoneList[LoopVar].TimeZone) { >-- >2.9.2 >