]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/HalRuntimeServicesExampleLib/ReportStatusCode.c
EmbeddedPkg: drop unused Pcds from package .dsc
[mirror_edk2.git] / EmbeddedPkg / Library / HalRuntimeServicesExampleLib / ReportStatusCode.c
index aaae4072841db3e0a40e9f3b54c47a711a4d6d08..e2d5500ae094faba9d27b64b670e43d6e981e818 100644 (file)
@@ -2,7 +2,7 @@
   Report status code lib on top of either SerialLib and/or EFI Serial Protocol.\r
   Based on PcdStatusCodeUseEfiSerial & PcdStatusCodeUseHardSerial settings\r
 \r
-  There is just a single runtime memory buffer that contans all the data. \r
+  There is just a single runtime memory buffer that contans all the data.\r
 \r
   Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
@@ -77,12 +77,12 @@ LibReportStatusCode (
     // Print DEBUG() information into output buffer.\r
     //\r
     CharCount = AsciiVSPrint (\r
-                  Buffer, \r
-                  EFI_STATUS_CODE_DATA_MAX_SIZE, \r
-                  Format, \r
+                  Buffer,\r
+                  EFI_STATUS_CODE_DATA_MAX_SIZE,\r
+                  Format,\r
                   Marker\r
                   );\r
-  } else if (Data != NULL && \r
+  } else if (Data != NULL &&\r
              CompareGuid (&Data->Type, &gEfiStatusCodeSpecificDataGuid) &&\r
              (CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_DEBUG_CODE) {\r
     //\r
@@ -98,19 +98,19 @@ LibReportStatusCode (
     // Print ERROR information into output buffer.\r
     //\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  EFI_STATUS_CODE_DATA_MAX_SIZE, \r
-                  "ERROR: C%x:V%x I%x", \r
-                  CodeType, \r
-                  Value, \r
+                  Buffer,\r
+                  EFI_STATUS_CODE_DATA_MAX_SIZE,\r
+                  "ERROR: C%x:V%x I%x",\r
+                  CodeType,\r
+                  Value,\r
                   Instance\r
                   );\r
 \r
     //\r
-    // Make sure we don't try to print values that weren't \r
+    // Make sure we don't try to print values that weren't\r
     // intended to be printed, especially NULL GUID pointers.\r
     //\r
-    \r
+\r
     if (CallerId != NULL) {\r
       CharCount += AsciiSPrint (\r
                      &Buffer[CharCount - 1],\r
@@ -136,19 +136,19 @@ LibReportStatusCode (
                    );\r
   } else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_PROGRESS_CODE) {\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  EFI_STATUS_CODE_DATA_MAX_SIZE, \r
-                  "PROGRESS CODE: V%x I%x\n\r", \r
-                  Value, \r
+                  Buffer,\r
+                  EFI_STATUS_CODE_DATA_MAX_SIZE,\r
+                  "PROGRESS CODE: V%x I%x\n\r",\r
+                  Value,\r
                   Instance\r
                   );\r
   } else {\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  EFI_STATUS_CODE_DATA_MAX_SIZE, \r
-                  "Undefined: C%x:V%x I%x\n\r", \r
-                  CodeType, \r
-                  Value, \r
+                  Buffer,\r
+                  EFI_STATUS_CODE_DATA_MAX_SIZE,\r
+                  "Undefined: C%x:V%x I%x\n\r",\r
+                  CodeType,\r
+                  Value,\r
                   Instance\r
                   );\r
   }\r
@@ -165,7 +165,7 @@ LibReportStatusCode (
       gBS->LocateProtocol (&gEfiSerialIoProtocolGuid, NULL, (VOID **) &mSerialIoProtocol);\r
     }\r
 \r
-    if (mSerialIoProtocol == NULL) {    \r
+    if (mSerialIoProtocol == NULL) {\r
       mSerialIoProtocol->Write (\r
         mSerialIoProtocol,\r
         &CharCount,\r