From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: shenglei.zhang@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Thu, 15 Aug 2019 00:37:52 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2019 00:37:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,388,1559545200"; d="scan'208";a="181805228" Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 15 Aug 2019 00:37:50 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Jaben Carsey , Ray Ni , Zhichao Gao Subject: [PATCH 1/1] ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left Date: Thu, 15 Aug 2019 15:37:47 +0800 Message-Id: <20190815073747.16316-1-shenglei.zhang@intel.com> X-Mailer: git-send-email 2.18.0.windows.1 Replace the operation to shift logical left with the function LShiftU64, which has the same functionality. The original code causes ShellPkg build failure with build target"-b NOOPT". Cc: Jaben Carsey Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Shenglei Zhang --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index 2d6ff80e299e..2e6d99145beb 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -290,7 +290,7 @@ DumpUint64 ( Val = *(UINT32*)(Ptr + sizeof (UINT32)); - Val <<= 32; + LShiftU64(Val,32); Val |= (UINT64)*(UINT32*)Ptr; Print (Format, Val); -- 2.18.0.windows.1