diff options
author | Shenglei Zhang <shenglei.zhang@intel.com> | 2019-08-15 15:32:59 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-08-19 08:45:29 +0800 |
commit | 5726bdd9a2dfd188a96129e8c00721f34cf3906e (patch) | |
tree | e063cd61d20ffad34d30663fb4ff6f11ea6f991b /ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | |
parent | 944bd5cf1d69741f3705983f650f6adad696a7d1 (diff) | |
download | edk2-5726bdd9a2dfd188a96129e8c00721f34cf3906e.tar.gz edk2-5726bdd9a2dfd188a96129e8c00721f34cf3906e.tar.bz2 edk2-5726bdd9a2dfd188a96129e8c00721f34cf3906e.zip |
ShellPkg/UefiShellAcpiViewCommandLib: Replace shift logical left
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 <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c index 94bafa22ef..a569c3c554 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c @@ -294,7 +294,7 @@ DumpUint64 ( Val = *(UINT32*)(Ptr + sizeof (UINT32));
- Val <<= 32;
+ Val = LShiftU64(Val,32);
Val |= (UINT64)*(UINT32*)Ptr;
Print (Format, Val);
|