diff options
author | Hao Wu <hao.a.wu@intel.com> | 2018-10-08 14:30:14 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2018-10-18 09:12:45 +0800 |
commit | f355dd34049c88167768e4a8acf85934aaae2dd2 (patch) | |
tree | f472f87258c019f41654eece4be9eaabe1ef6148 | |
parent | 6086569e7ee7f4787fc96c72d253174469058f11 (diff) | |
download | edk2-f355dd34049c88167768e4a8acf85934aaae2dd2.tar.gz edk2-f355dd34049c88167768e4a8acf85934aaae2dd2.tar.bz2 edk2-f355dd34049c88167768e4a8acf85934aaae2dd2.zip |
MdeModulePkg/UdfDxe: Use debug msg instead of ASSERT in UdfOpen()
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1248
Within function UdfOpen():
This commit will use debug messages instead of using ASSERT when an error
occurs after calling GetFileSize().
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Star Zeng <star.zeng@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/Disk/UdfDxe/File.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Disk/UdfDxe/File.c b/MdeModulePkg/Universal/Disk/UdfDxe/File.c index 2249f4ea0e..0730e6a3fa 100644 --- a/MdeModulePkg/Universal/Disk/UdfDxe/File.c +++ b/MdeModulePkg/Universal/Disk/UdfDxe/File.c @@ -257,8 +257,12 @@ UdfOpen ( &NewPrivFileData->File,
&NewPrivFileData->FileSize
);
- ASSERT_EFI_ERROR (Status);
if (EFI_ERROR (Status)) {
+ DEBUG ((
+ DEBUG_ERROR,
+ "%a: GetFileSize() fails with status - %r.\n",
+ __FUNCTION__, Status
+ ));
goto Error_Get_File_Size;
}
|