]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/EhciDxe/EhciDebug.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / EhciDxe / EhciDebug.c
index 55cbb68570360b0f906ce993f495e75011a3dec1..79888bf3a54f3abde35da96e1bfeb282f8cadd3e 100644 (file)
@@ -8,7 +8,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 **/\r
 \r
-\r
 #include "Ehci.h"\r
 \r
 /**\r
@@ -19,7 +18,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 **/\r
 VOID\r
 EhcDumpStatus (\r
-  IN UINT32               State\r
+  IN UINT32  State\r
   )\r
 {\r
   if (EHC_BIT_IS_SET (State, QTD_STAT_DO_PING)) {\r
@@ -57,7 +56,6 @@ EhcDumpStatus (
   DEBUG ((DEBUG_VERBOSE, "\n"));\r
 }\r
 \r
-\r
 /**\r
   Dump the fields of a QTD.\r
 \r
@@ -67,12 +65,12 @@ EhcDumpStatus (
 **/\r
 VOID\r
 EhcDumpQtd (\r
-  IN EHC_QTD              *Qtd,\r
-  IN CHAR8                *Msg\r
+  IN EHC_QTD  *Qtd,\r
+  IN CHAR8    *Msg\r
   )\r
 {\r
-  QTD_HW                  *QtdHw;\r
-  UINTN                   Index;\r
+  QTD_HW  *QtdHw;\r
+  UINTN   Index;\r
 \r
   if (Msg != NULL) {\r
     DEBUG ((DEBUG_VERBOSE, Msg));\r
@@ -89,13 +87,10 @@ EhcDumpQtd (
 \r
   if (QtdHw->Pid == QTD_PID_SETUP) {\r
     DEBUG ((DEBUG_VERBOSE, "PID          : Setup\n"));\r
-\r
   } else if (QtdHw->Pid == QTD_PID_INPUT) {\r
     DEBUG ((DEBUG_VERBOSE, "PID          : IN\n"));\r
-\r
   } else if (QtdHw->Pid == QTD_PID_OUTPUT) {\r
     DEBUG ((DEBUG_VERBOSE, "PID          : OUT\n"));\r
-\r
   }\r
 \r
   DEBUG ((DEBUG_VERBOSE, "Error Count  : %d\n", QtdHw->ErrCnt));\r
@@ -109,7 +104,6 @@ EhcDumpQtd (
   }\r
 }\r
 \r
-\r
 /**\r
   Dump the queue head.\r
 \r
@@ -120,22 +114,27 @@ EhcDumpQtd (
 **/\r
 VOID\r
 EhcDumpQh (\r
-  IN EHC_QH               *Qh,\r
-  IN CHAR8                *Msg,\r
-  IN BOOLEAN              DumpBuf\r
+  IN EHC_QH   *Qh,\r
+  IN CHAR8    *Msg,\r
+  IN BOOLEAN  DumpBuf\r
   )\r
 {\r
-  EHC_QTD                 *Qtd;\r
-  QH_HW                   *QhHw;\r
-  LIST_ENTRY              *Entry;\r
-  UINTN                   Index;\r
+  EHC_QTD     *Qtd;\r
+  QH_HW       *QhHw;\r
+  LIST_ENTRY  *Entry;\r
+  UINTN       Index;\r
 \r
   if (Msg != NULL) {\r
     DEBUG ((DEBUG_VERBOSE, Msg));\r
   }\r
 \r
-  DEBUG ((DEBUG_VERBOSE, "Queue head @ 0x%p, interval %ld, next qh %p\n",\r
-                                Qh, (UINT64)Qh->Interval, Qh->NextQh));\r
+  DEBUG ((\r
+    DEBUG_VERBOSE,\r
+    "Queue head @ 0x%p, interval %ld, next qh %p\n",\r
+    Qh,\r
+    (UINT64)Qh->Interval,\r
+    Qh->NextQh\r
+    ));\r
 \r
   QhHw = &Qh->QhHw;\r
 \r
@@ -166,10 +165,8 @@ EhcDumpQh (
 \r
   if (QhHw->Pid == QTD_PID_SETUP) {\r
     DEBUG ((DEBUG_VERBOSE, "PID           : Setup\n"));\r
-\r
   } else if (QhHw->Pid == QTD_PID_INPUT) {\r
     DEBUG ((DEBUG_VERBOSE, "PID           : IN\n"));\r
-\r
   } else if (QhHw->Pid == QTD_PID_OUTPUT) {\r
     DEBUG ((DEBUG_VERBOSE, "PID           : OUT\n"));\r
   }\r
@@ -196,7 +193,6 @@ EhcDumpQh (
   }\r
 }\r
 \r
-\r
 /**\r
   Dump the buffer in the form of hex.\r
 \r
@@ -206,15 +202,15 @@ EhcDumpQh (
 **/\r
 VOID\r
 EhcDumpBuf (\r
-  IN UINT8                *Buf,\r
-  IN UINTN                Len\r
+  IN UINT8  *Buf,\r
+  IN UINTN  Len\r
   )\r
 {\r
-  UINTN                   Index;\r
+  UINTN  Index;\r
 \r
   for (Index = 0; Index < Len; Index++) {\r
     if (Index % 16 == 0) {\r
-      DEBUG ((DEBUG_VERBOSE,"\n"));\r
+      DEBUG ((DEBUG_VERBOSE, "\n"));\r
     }\r
 \r
     DEBUG ((DEBUG_VERBOSE, "%02x ", Buf[Index]));\r