On 19 July 2018 at 06:15, Carsey, Jaben <[email protected]> wrote: > Reviewed-by: Jaben Carsey <[email protected]> > > One question (do hold up push). Is there a reason to use the former over the > latter? I use latter and I see you use the former. > > ASSERT(EFI_ERROR (Status)); > ASSERT_EFI_ERROR (Status); >
The former asserts that an error has occurred, the latter does the opposite. It seems Laszlo is using this to ensure we don't end up in the error handling path if no error occurred. -- Ard. >> -----Original Message----- >> From: Laszlo Ersek [mailto:[email protected]] >> Sent: Wednesday, July 18, 2018 1:51 PM >> To: edk2-devel-01 <[email protected]> >> Cc: Zhang, Chao B <[email protected]>; Dong, Eric >> <[email protected]>; Carsey, Jaben <[email protected]>; Wu, Jiaxin >> <[email protected]>; Yao, Jiewen <[email protected]>; Gao, Liming >> <[email protected]>; Kinney, Michael D <[email protected]>; >> Roman Bacik <[email protected]>; Ni, Ruiyu >> <[email protected]>; Fu, Siyuan <[email protected]>; Zeng, Star >> <[email protected]> >> Subject: [PATCH 0/6] UefiLib: centralize OpenFileByDevicePath() and fix its >> bugs >> Importance: High >> >> Repo: https://github.com/lersek/edk2.git >> Branch: open_file_by_devpath_tiano_1008 >> >> This series addresses >> <https://bugzilla.tianocore.org/show_bug.cgi?id=1008>. >> >> In this version of the patch set, EfiOpenFileByDevicePath() is not added >> to the FrameworkUefiLib instance. If FrameworkUefiLib actually needs a >> definition of the function, I suggest that we add it once everybody >> agrees on the implementation. >> >> Tested with: >> >> - MdeModulePkg/RamDiskDxe: created a virtual disk from an ISO file, >> using the HII form; browsed the disk contents from the UEFI shell. >> >> - NetworkPkg/TlsAuthConfigDxe: loaded a CA certificate from a file via >> the HII form, successfully booted via HTTPSv4. >> >> - SecurityPkg/SecureBootConfigDxe: enrolled >> "MicCorKEKCA2011_2011-06-24.crt", "MicCorUEFCA2011_2011-06-27.crt", >> and "MicWinProPCA2011_2011-10-19.crt", using the HII form; verified >> Secure Boot with a Fedora guest. >> >> - ShellPkg/UefiShellLib: couldn't test the "old shell method" code path. >> Help with testing would be appreciated. >> >> Cc: Chao Zhang <[email protected]> >> Cc: Eric Dong <[email protected]> >> Cc: Jaben Carsey <[email protected]> >> Cc: Jiaxin Wu <[email protected]> >> Cc: Jiewen Yao <[email protected]> >> Cc: Liming Gao <[email protected]> >> Cc: Michael D Kinney <[email protected]> >> Cc: Roman Bacik <[email protected]> >> Cc: Ruiyu Ni <[email protected]> >> Cc: Siyuan Fu <[email protected]> >> Cc: Star Zeng <[email protected]> >> >> Thanks, >> Laszlo >> >> Laszlo Ersek (6): >> MdePkg/UefiLib: introduce EfiOpenFileByDevicePath() >> MdeModulePkg/RamDiskDxe: replace OpenFileByDevicePath() with UefiLib >> API >> NetworkPkg/TlsAuthConfigDxe: replace OpenFileByDevicePath() with >> UefiLib API >> SecurityPkg/SecureBootConfigDxe: replace OpenFileByDevicePath() with >> UefiLib API >> ShellPkg/UefiShellLib: drop DeviceHandle param of >> ShellOpenFileByDevicePath() >> ShellPkg/UefiShellLib: rebase ShellOpenFileByDevicePath() to UefiLib >> API >> >> MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf >> | 1 - >> MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskFileExplorer.c >> | 140 ------------ >> MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c >> | 2 +- >> MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.h >> | 39 ---- >> MdePkg/Include/Library/UefiLib.h >> | 86 ++++++++ >> MdePkg/Library/UefiLib/UefiLib.c >> | 226 >> ++++++++++++++++++++ >> MdePkg/Library/UefiLib/UefiLib.inf >> | 1 + >> NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf >> | 1 >> - >> NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c >> | 141 >> +----------- >> >> SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfi >> gDxe.inf | 1 - >> >> SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfi >> gFileExplorer.c | 151 +------------ >> ShellPkg/Include/Library/ShellLib.h >> | 2 - >> ShellPkg/Library/UefiShellLib/UefiShellLib.c >> | 118 +------- >> -- >> ShellPkg/Library/UefiShellLib/UefiShellLib.inf >> | 3 +- >> 14 files changed, 321 insertions(+), 591 deletions(-) >> >> -- >> 2.14.1.3.gb7cf6e02401b > > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

