From db52c7f755885d2f42279ba0d967c5d646d017b1 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Sun, 5 Dec 2021 14:33:53 -0800 Subject: MdeModulePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END() REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767 Update use of DEBUG_CODE(Expression) if Expression is a complex code block with if/while/for/case statements that use {}. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Liming Gao --- MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Application/CapsuleApp') diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c b/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c index 712cf2e1f7..77f9a1571f 100644 --- a/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c +++ b/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c @@ -336,7 +336,7 @@ GetEfiSysPartitionFromBootOptionFilePath ( break; } - DEBUG_CODE ( + DEBUG_CODE_BEGIN (); CHAR16 *DevicePathStr; DevicePathStr = ConvertDevicePathToText (CurFullPath, TRUE, TRUE); @@ -344,7 +344,7 @@ GetEfiSysPartitionFromBootOptionFilePath ( DEBUG ((DEBUG_INFO, "Full device path %s\n", DevicePathStr)); FreePool (DevicePathStr); } - ); + DEBUG_CODE_END (); Status = GetEfiSysPartitionFromDevPath (CurFullPath, &FsFullPath, Fs); } while (EFI_ERROR (Status)); @@ -468,7 +468,7 @@ GetUpdateFileSystem ( continue; } - DEBUG_CODE ( + DEBUG_CODE_BEGIN (); CHAR16 *DevicePathStr; DevicePathStr = ConvertDevicePathToText (DevicePath, TRUE, TRUE); @@ -478,7 +478,7 @@ GetUpdateFileSystem ( } else { DEBUG ((DEBUG_INFO, "DevicePathToStr failed\n")); } - ); + DEBUG_CODE_END (); Status = GetEfiSysPartitionFromBootOptionFilePath (DevicePath, &FullPath, Fs); if (!EFI_ERROR (Status)) { -- cgit v1.2.3