From f355dd34049c88167768e4a8acf85934aaae2dd2 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Mon, 8 Oct 2018 14:30:14 +0800 Subject: [PATCH] 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 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu Reviewed-by: Paulo Alcantara Reviewed-by: Star Zeng --- MdeModulePkg/Universal/Disk/UdfDxe/File.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }