Skip to content

Commit

Permalink
SourceLevelDebugPkg: Apply uncrustify changes
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the SourceLevelDebugPkg package

Cc: Andrew Fish <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Michael D Kinney <[email protected]>
Signed-off-by: Michael Kubacki <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
  • Loading branch information
makubacki authored and mergify[bot] committed Dec 7, 2021
1 parent b878648 commit c1e126b
Show file tree
Hide file tree
Showing 35 changed files with 3,507 additions and 3,341 deletions.
33 changes: 18 additions & 15 deletions SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Library/DebugAgentLib.h>
#include <Library/UefiLib.h>

EFI_EVENT mExitBootServiceEvent;
EFI_EVENT mExitBootServiceEvent;

/**
One notified function to disable Debug Timer interrupt when gBS->ExitBootServices() called.
Expand All @@ -24,8 +24,8 @@ EFI_EVENT mExitBootServiceEvent;
VOID
EFIAPI
DisableDebugTimerExitBootService (
EFI_EVENT Event,
VOID *Context
EFI_EVENT Event,
VOID *Context
)

{
Expand All @@ -46,12 +46,12 @@ DisableDebugTimerExitBootService (
**/
EFI_STATUS
EFIAPI
DebugAgentDxeInitialize(
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
DebugAgentDxeInitialize (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
EFI_STATUS Status;
EFI_STATUS Status;

if (gST->ConOut != NULL) {
Print (L"If the Debug Port is serial port, please make sure this serial port isn't connected by");
Expand Down Expand Up @@ -81,14 +81,17 @@ DebugAgentDxeInitialize(
Print (L"3: Shell> disconnect EA\r\n");
Print (L"4: Shell> load -nc DebugAgentDxe.efi\r\n\r\n");
}

Status = EFI_UNSUPPORTED;
InitializeDebugAgent (DEBUG_AGENT_INIT_DXE_LOAD, &Status, NULL);
if (EFI_ERROR (Status)) {
return Status;
}

if (gST->ConOut != NULL) {
Print (L"Debug Agent: Initialized successfully!\r\n\r\n");
}

//
// Create event to disable Debug Timer interrupt when exit boot service.
//
Expand Down Expand Up @@ -117,20 +120,20 @@ DebugAgentDxeInitialize(
EFI_STATUS
EFIAPI
DebugAgentDxeUnload (
IN EFI_HANDLE ImageHandle
IN EFI_HANDLE ImageHandle
)
{
EFI_STATUS Status;
EFI_STATUS Status;

Status = EFI_UNSUPPORTED;
InitializeDebugAgent (DEBUG_AGENT_INIT_DXE_UNLOAD, &Status, NULL);
switch (Status) {
case EFI_ACCESS_DENIED:
Print (L"Debug Agent: Host is still connected, please de-attach TARGET firstly!\r\n");
break;
case EFI_NOT_STARTED:
Print (L"Debug Agent: It hasn't been initialized, cannot unload it!\r\n");
break;
case EFI_ACCESS_DENIED:
Print (L"Debug Agent: Host is still connected, please de-attach TARGET firstly!\r\n");
break;
case EFI_NOT_STARTED:
Print (L"Debug Agent: It hasn't been initialized, cannot unload it!\r\n");
break;
}

return Status;
Expand Down
2 changes: 1 addition & 1 deletion SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DebugAgentPeiInitialize (
IN CONST EFI_PEI_SERVICES **PeiServices
)
{
EFI_STATUS Status;
EFI_STATUS Status;

Status = EFI_UNSUPPORTED;
InitializeDebugAgent (DEBUG_AGENT_INIT_PEI, &Status, NULL);
Expand Down
2 changes: 1 addition & 1 deletion SourceLevelDebugPkg/Include/Guid/DebugAgentGuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
0x865a5a9b, 0xb85d, 0x474c, { 0x84, 0x55, 0x65, 0xd1, 0xbe, 0x84, 0x4b, 0xe2 } \
}

extern EFI_GUID gEfiDebugAgentGuid;
extern EFI_GUID gEfiDebugAgentGuid;

#endif
Loading

0 comments on commit c1e126b

Please sign in to comment.