]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/UdfDxe: Use debug msg instead of ASSERT in UdfOpen()
authorHao Wu <hao.a.wu@intel.com>
Mon, 8 Oct 2018 06:30:14 +0000 (14:30 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 18 Oct 2018 01:12:45 +0000 (09:12 +0800)
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>
MdeModulePkg/Universal/Disk/UdfDxe/File.c

index 2249f4ea0e8e566f3fc67d8a81d8985bb3d4fc4b..0730e6a3fa9caced9ef605a596c4670b9e14d2bf 100644 (file)
@@ -257,8 +257,12 @@ UdfOpen (
     &NewPrivFileData->File,\r
     &NewPrivFileData->FileSize\r
     );\r
-  ASSERT_EFI_ERROR (Status);\r
   if (EFI_ERROR (Status)) {\r
+    DEBUG ((\r
+      DEBUG_ERROR,\r
+      "%a: GetFileSize() fails with status - %r.\n",\r
+      __FUNCTION__, Status\r
+      ));\r
     goto Error_Get_File_Size;\r
   }\r
 \r