From 0db01053abe833381cf00738b6dd22b7f5732d10 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 16 Nov 2022 20:06:52 +0100 Subject: [PATCH] Code formatting --- xtldr/blproto.c | 5 +++-- xtldr/modules/pecoff/pecoff.c | 3 ++- xtldr/xtldr.c | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/xtldr/blproto.c b/xtldr/blproto.c index fc6ec9f..595fa22 100644 --- a/xtldr/blproto.c +++ b/xtldr/blproto.c @@ -66,8 +66,9 @@ BlLoadXtProtocol(OUT PVOID *ProtocolHandler, for(Index = 0; Index < Count; Index++) { /* Try to open protocol */ - Status = EfiSystemTable->BootServices->OpenProtocol(Handles[Index], ProtocolGuid, ProtocolHandler, - EfiImageHandle, NULL, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL); + Status = EfiSystemTable->BootServices->OpenProtocol(Handles[Index], ProtocolGuid, + ProtocolHandler, EfiImageHandle, NULL, + EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL); /* Check if successfully opened the loader protocol */ if(Status == STATUS_EFI_SUCCESS) diff --git a/xtldr/modules/pecoff/pecoff.c b/xtldr/modules/pecoff/pecoff.c index 3992223..7994b60 100644 --- a/xtldr/modules/pecoff/pecoff.c +++ b/xtldr/modules/pecoff/pecoff.c @@ -552,5 +552,6 @@ BlXtLdrModuleMain(IN EFI_HANDLE ImageHandle, XtPeCoffProtocol.Relocate = PeRelocateImage; /* Register PE/COFF protocol */ - return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &XtPeCoffProtocol); + return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, + &XtPeCoffProtocol); } diff --git a/xtldr/xtldr.c b/xtldr/xtldr.c index 4e0e393..06b09fb 100644 --- a/xtldr/xtldr.c +++ b/xtldr/xtldr.c @@ -149,7 +149,8 @@ BlLoadEfiModules() } /* Load the module into memory */ - Status = EfiSystemTable->BootServices->LoadImage(FALSE, EfiImageHandle, VolumeDevicePath, NULL, 0, &ModuleHandle); + Status = EfiSystemTable->BootServices->LoadImage(FALSE, EfiImageHandle, VolumeDevicePath, + NULL, 0, &ModuleHandle); if(Status != STATUS_EFI_SUCCESS) { /* Module failed */ @@ -326,7 +327,8 @@ BlRegisterXtLoaderProtocol() /* Register loader protocol */ BlDbgPrint(L"Registering XT loader protocol\n"); - return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &EfiLdrProtocol); + return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, + &EfiLdrProtocol); } /**